Project

General

Profile

Actions

Feature #17402

closed

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

Added by Stefan Galinski over 17 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-06-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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

typo3_initBeUserFix.patch (1.58 KB) typo3_initBeUserFix.patch Administrator Admin, 2007-06-19 18:24
Actions #1

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 !

Actions #2

Updated by Mario Matzulla over 17 years ago

1+

Actions #3

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.

Actions #4

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.

Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF