Feature #17402
closedBE_USER should be created before tables + ext_tables are loaded (typo3/init.php)
0%
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)
Files
Updated by Steffen Kamper over 17 years ago
this would be great as it gives extension the possibility to make BE_USER-specific settings in TCA without creating own BE_USER for that !
Updated by Martin Kutschker over 17 years ago
The TCA is a golbal configuration. It is my belief that the fiddling with it within the configuration file is a problem and not a feature. True configration should IMHO be done with static text or xml files not PHP files.
If you need user dependent setttings use user TS. If it's not enough write a patch for it.
I have changed hte bug to feature as it not a bug.
Updated by Stefan Galinski over 14 years ago
This bug can be closed, because it's outdated. Another feature request should be opened if it's still necessary like Masi already mentioned.