Issue Feature Closed

#17402BE_USER should be created before tables + ext_tables are loaded (typo3/init.php)

Stefan Galinski 06/19/07, 18:24 updated 10/02/18, 12:42

Description

Steps to reproduce an example error:

1) install the cal extension
2) execute the crawler script
“./typo3/cli_dispatch.phpsh crawler“
3) wait for the error (No be user logged in!)

The problem was caused by the file tca.php in the cal extension which was loaded before the be user was created.

[…]
if(!is_object($GLOBALS[‘BE_USER’])) {
$GLOBALS[‘BE_USER’] = t3lib_div::makeInstance(‘t3lib_beUserAuth’); // New backend user object
$GLOBALS[‘BE_USER’]->start(); // Object is initialized
$GLOBALS[‘BE_USER’]->backendCheckLogin(); // Checking if there’s a user logged in
}
[…]

The applied patch just changes the order in the init.php script.

(issue imported from #M5824)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.