[TYPO3] eID $TSFE error

ries van Twisk typo3 at rvt.dds.nl
Mon Oct 1 16:19:08 CEST 2007


my suggestion is to use a page type rather
then trying to initialize  TSFE form eID.

Bot methods are just as fast, but the type method is more easy to  
work with.

Ries

On Oct 1, 2007, at 9:02 AM, Sebastian Böttger wrote:

> Hello,
>
> I want to use eID for receiving an AJAX answer and the want to use  
> the global $TSFE for it.
>
> The following I try for this:
>
> // ***********************************
> // Create $TSFE object (TSFE = TypoScript Front End)
> // Connecting to database
> // ***********************************
>
> // Initialize FE user object:
>   $feUserObj = tslib_eidtools::initFeUser();
>
>   $temp_TSFEclassName =
> t3lib_div::makeInstanceClassName('tslib_fe');
>
>   // create object instances:
>   $temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
>   $TSFE = new $temp_TSFEclassName($TYPO3_CONF_VARS, $page, 0, true);
>     $TSFE->connectToDB();
>
>
>   $GLOBALS['TSFE'] = $TSFE;
>
>
> For filtering the database for the correct RootPIDs I use
>
> $storagePid = $GLOBALS['TSFE']->getStorageSiterootPids();
>
> to fetch the storagePIDs.
>
> This results in an
>
> *Fatal error: Passed variable is not an array or object in
> typo3_src-4.1.2/typo3/sysext/cms/tslib/class.tslib_fe.php* on line  
> *3762*
>
> This is the following line in class.tslib_fe.php
>         reset($this->rootLine);
>
> Therefore $this->rootLine is not set.
>
> Anybody got an idea how to solve this problem?
>
> Best wishes
> Sebastian Böttger
>
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

--
Ries van Twisk
Freelance TYPO3 Developer
email: ries at vantwisk.nl
web:   http://www.rvantwisk.nl/
skype: callto://r.vantwisk
Phone: + 1 810-476-4193








More information about the TYPO3-english mailing list