Project

General

Profile

Actions

Bug #39187

closed

PHP Fatal error: Class 't3lib_utility_Debug' not found

Added by Philipp Gampe almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Priority:
Won't have this time
Assignee:
Category:
Miscellaneous
Target version:
-
Start date:
2012-07-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.4
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

This happens if an extension does some magic inside ext_autoload.php and calls a deprecated function.

To reproduce, install ext:news from git and rm -rf typo3temp/Cache/*.

tx_news tries to call t3lib_extMgm::getEnabledExtensionList which result in a call to t3lib_div::logDeprecatedFunction() which in turn calls t3lib_utility_Debug::debugTrail().

A simple solution is to require t3lib_utility_Debug during bootstrap as part of the required classes:

--- a/typo3/classes/Bootstrap/BaseSetup.php
+++ b/typo3/classes/Bootstrap/BaseSetup.php
@@ -205,6 +205,7 @@ class Typo3_Bootstrap_BaseSetup {
        protected static function requireBaseClasses() {
                /** @define "PATH_t3lib" "../../../t3lib/" */
                require_once(PATH_t3lib . 'class.t3lib_div.php');
+               require_once(PATH_t3lib . 'utility/class.t3lib_utility_debug.php');

                require_once(PATH_t3lib . 'utility/class.t3lib_utility_array.php');
                require_once(PATH_t3lib . 'class.t3lib_configuration.php');

I have a patch ready, but would like to have feedback before messing with the bootstrap.

Actions

Also available in: Atom PDF