[TYPO3-core] RFC #12265: Fatal error in superadmin script
Rupert Germann
rupi at gmx.li
Mon Oct 19 13:14:01 CEST 2009
Hi,
this is a SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=12265
Branches: Trunk
Problem:
the superadmin script (t3lib/class.t3lib_superadmin.php) was not changed
since implementing autoloading for the core. The superadmin script is
executed without including config_default.php or init.php and so there's
no autoloader registered resulting in
"PHP Fatal error: Class 't3lib_cs' not found in
/srv/SVN/forge.typo3.org/Core/trunk/t3lib/class.t3lib_div.php on line 4939"
when clicking the "INFO" or "UPDATE" link.
Solution:
register the core autoloader also in t3lib/class.t3lib_superadmin.php.
this leads to new problems:
a) lang.php in core_autoload.php requries an included extmgm class and a
loaded lang extension.
b) core_autoload.php uses the PATH_t3lib constant which is not defined
in class.t3lib_superadmin.php
solution for this:
remove lang.php from autoloader registry and load it with require()
and define the constant PATH_t3lib in class.t3lib_superadmin.php
greets
rupert
More information about the TYPO3-team-core
mailing list