[TYPO3-english] $GLOBALS["TSFE"]->feuser

Bjarne Helligsoe bjarnehelligsoe at hotmail.com
Sun Jun 21 00:41:41 CEST 2009

Hi Alex,

I followed your idea, which is what I need, but I gets the following 

PHP Fatal error: Call to a member function push() on a non-object in 
C:\BBH-DATA\Web\t3_4_3\typo3\sysext\cms\tslib\class.tslib_fe.php on line 599

The line which gives the error:
598    protected function initCaches() {
599        $GLOBALS['TT']->push('Initializing the Caching System','');
601        $GLOBALS['typo3CacheManager'] = 
602        $GLOBALS['typo3CacheFactory'] = 

Any idea?


"alex widschwendter" <a.widschwendter at mediares.at> wrote in message 
news:mailman.1.1245417613.18132.typo3-english at lists.netfielders.de...
> hi,
>> In a rightclickmenu I need to get user information, but the values in 
>> $GLOBALS["TSFE"]->feuser are empty, and therefor not init. The menu is a 
>> ajax menu, and so the php page who generate the men is a "stand alone" 
>> file. With a init.php (stole and rewrited "/typo3/init.php") I have set 
>> up the difference variables, but not the $GLOBALS["TSFE"]->feuser.
>> Does anyone know where in the core $GLOBALS["TSFE"]->feuser is set, or 
>> better which T3 class do I have to include on me standalone page???
> afaik you could use an eid script for that.
> a template for you script:
> <?php
> require_once(PATH_tslib.'class.tslib_pibase.php');
> //require_once(PATH_tslib.'class.tslib_fe.php');
> // Exit, if script is called directly (must be included via eID in 
> index_ts.php)
> //if (!defined ('PATH_typo3conf')) die ('Could not access this script 
> directly!');
> // Initialize FE user object:
> $feUserObj = tslib_eidtools::initFeUser();
> // Connect to database:
> tslib_eidtools::connectDB();
> you have to enable the eid script in the ext_localconf.php of your 
> extension:
> $TYPO3_CONF_VARS['FE']['eID_include']['addToBasket'] = 
> 'EXT:mdrs_24safe_shop/addToBasket.php';
> hth alex 

More information about the TYPO3-english mailing list