[TYPO3-dev] Fatal Error when using $GLOBALS['TSFE']->fe_user->getKey() in localconf.php in TYPO3 4.0

Patrick Rodacker patrick.rodacker at the-reflection.de
Mon Jul 3 17:59:27 CEST 2006


Hi list,

to set up a userdefined condition I have included a function in
localconf.php which calls the method

$GLOBALS['TSFE']->fe_user->getKey('ses', 'myData');

to access some session data. In TYPO3 4.0 I get the following fatal error:

Fatal error: Call to a member function getKey() on a non-object in
D:\Programme\xampp\htdocs\abstracts.hart-soft.de\typo3conf\localconf.php
on line 69

which refers to the method call above.

The error occurs only if the condition is used in the template and if I
try to:

- create a new page inside another page
- edit the page properties

As stated in the subject, I am using TYPO3 4.0, but I could test the
condition and the function in TYPO3 3.8.1 also. There everything is fine
and working.

Are there any clues, where the problem is located? I am not so familiar
with the TYPO3 core so if anybody could point me to the classes where I
have to look, I could try to debug this problem myself.

Thanks in advance.

Regards
Patrick




More information about the TYPO3-dev mailing list