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

Also available in: Atom PDF