[TYPO3-core] RFC #12265: Fatal error in superadmin script

Yannick Pavard ypavard at infoglobe.ca
Tue Oct 20 14:51:42 CEST 2009


Rupert,

Can you check source code for "Admin logins" menu also ?

This code :

<form method="post" target="EXTERnalWindow" 
action="http://localhost/demo/typo3/index.php" 
name="aadacb5250ba009b7ac6a1ddaedd89c1">
<input type="submit" value="Login" name="submit"/>
<input type="hidden" value="admin" name="username"/>
<input type="hidden" value="2c34b6273a6cf47d8455046517ac1e79" 
name="challenge"/>
<input type="hidden" value="" name="redirect_url"/>
<input type="hidden" value="login" name="login_status"/> (admin)<br/>
<input type="hidden" value="026e3a98e3a0cb02df6e4ff429d5bba4" 
name="userident"/>
</form>

It's not possible to automatically login from this option...

Perhaps update also this html code for TYPO3 4.x ?

Thanks

Rupert Germann a écrit :
> 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