|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hey Guys,
When I want to init a fe user like this tslib_eidtools::initFeUser(); I get this error : <br /> <b>Fatal error</b>: Call to a member function getKey() on a non-object in <b>/Users/rvt/Sites/gmacc/typo3conf/ext/gm_shop/ajax/check.php</b> on line <b>13</b><br /> Is using tslib_eidtools::initFeUser(); the correct method to init teh FE user object? The function does success when I have a logged in FE user... Ries -- Ries van Twisk Freelance Typo3 Developer === Private: email: ries (AT) vantwisk (DOT) nl web: http://www.rvantwisk.nl/freelance-typo3.html skype: callto://r.vantwisk _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Hi,
> Is using tslib_eidtools::initFeUser(); the correct method to init teh > FE user object? within an eid script: Yes within a regular pi use $TSFE->initFEuser(); bye, Nikolas _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#3
|
|||
|
|||
|
Nikolas Hagelstein wrote:
> Hi, > >> Is using tslib_eidtools::initFeUser(); the correct method to init teh >> FE user object? >> > within an eid script: Yes > within a regular pi use $TSFE->initFEuser(); > > bye, > Nikolas > _______________________________________________ > Hi Nikolas, I just receive the mentioned error when I call that function when no user is logged in. My question is: We is responsible for checking if we have a logged in user. a) Myself.... b) the function tslib_eidtools::initFeUser(); cheers, Ries -- Ries van Twisk Freelance Typo3 Developer === Private: email: ries (AT) vantwisk (DOT) nl web: http://www.rvantwisk.nl/freelance-typo3.html skype: callto://r.vantwisk === Work: email: ries (AT) livetravelguides (DOT) com web: http://www.livetravelguides.com _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#4
|
|||
|
|||
|
On Wed, 06 Dec 2006 03:45:30 +1100, Nikolas Hagelstein <hagelstein (AT) shr (DOT) cc>
wrote: > within a regular pi use $TSFE->initFEuser(); I think it won't work in regular pi when in eID mode because there is no $TSFE var... You need to create $TSFE yourself as a global variable. -- regards, Cyprian http://pi2.pl design project _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#5
|
|||
|
|||
|
Cyprian Kowalczyk wrote:
> On Wed, 06 Dec 2006 03:45:30 +1100, Nikolas Hagelstein <hagelstein (AT) shr (DOT) cc> > wrote: > > >> within a regular pi use $TSFE->initFEuser(); >> > > I think it won't work in regular pi when in eID mode because there is no > $TSFE var... > You need to create $TSFE yourself as a global variable. > > Hey Cyprian, how are you doing?? I was just hoping that the function would notice that, and would call the appropriate modules... Or may be a init function for eID where I can tell the system what I want to use. I will look into the glass to see what is going on there... Ries -- Ries van Twisk Freelance Typo3 Developer === Private: email: ries (AT) vantwisk (DOT) nl web: http://www.rvantwisk.nl/freelance-typo3.html skype: callto://r.vantwisk _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#6
|
|||
|
|||
|
> how are you doing??
I'm ok Ries, how are you? ![]() > I was just hoping that the function would notice that, > and would call the appropriate modules... Or may be > a init function for eID where I can tell the system what I want to use. No way, using eID you actually need to initialize everything by yourself and, moreover, sometimes dig deeply into a code to find out what a function or library needs in order to work. Typo3 doesn't seem to have a simple switch-on-feture for libraries. And then is one more thing, if you try to initialize functions you need you may come to a point where using eID is of no point because you actually initialized whole FE engine ![]() -- regards, Cyprian http://pi2.pl design project _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#7
|
|||
|
|||
|
Cyprian Kowalczyk wrote:
>> how are you doing?? >> > > I'm ok Ries, how are you? ![]() > Great!! > >> I was just hoping that the function would notice that, >> and would call the appropriate modules... Or may be >> a init function for eID where I can tell the system what I want to use. >> > > No way, using eID you actually need to initialize everything by yourself > and, moreover, sometimes dig deeply into a code to find out what a > function or library needs in order to work. > Typo3 doesn't seem to have a simple switch-on-feture for libraries. > And then is one more thing, if you try to initialize functions you need > you may come to a point where using eID is of no point because you > actually initialized whole FE engine ![]() > > > In this case the initFEuser will success when there is a logged in user session. However when the user is not logged it give the message. I would have expected. That initFEuser would also init a 'anonymous' user correct. At least trowing me a error like that looks in appropriate. I will look into the code somewhere this week. Ries _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#8
|
|||
|
|||
|
Hi,
>> within a regular pi use $TSFE->initFEuser(); > > I think it won't work in regular pi when in eID mode because there is > no $TSFE var... You need to create $TSFE yourself as a global > variable. Yes, that is why i mentioned "within a regular pi". Within an eID script "tslib_eidtools::initFeUser()" has to be used. Ries: You are creating an eID script right? bye, NIkolas _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#9
|
|||
|
|||
|
Nikolas Hagelstein wrote:
> Hi, > >>> within a regular pi use $TSFE->initFEuser(); >>> >> I think it won't work in regular pi when in eID mode because there is >> no $TSFE var... You need to create $TSFE yourself as a global >> variable. >> > Yes, that is why i mentioned "within a regular pi". Within an eID script > > "tslib_eidtools::initFeUser()" has to be used. > > Ries: > You are creating an eID script right? > bye, > NIkolas > Hey Nikolas, Yes,.. I am creating a response handler for a ajax request. My start of my scrip looks like this: <?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(); ?> I was hoping because initFeUser(); is a static member it would take care of situations.. there is (as far as I know) no init methods. -- Ries van Twisk Freelance Typo3 Developer === Private: email: ries (AT) vantwisk (DOT) nl web: http://www.rvantwisk.nl/freelance-typo3.html skype: callto://r.vantwisk _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Disable RTE for FE-Users? | Fabian König | typo3-english@lists.netfielders.de | 3 | 15.12.2006 12:07 |