TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-dev@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 05.12.2006, 17:01
R. van Twisk
Gast
 
Beiträge: n/a
Standard [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Sponsored Links
  #2  
Alt 05.12.2006, 17:45
Nikolas Hagelstein
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 05.12.2006, 19:27
R. van Twisk
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 06.12.2006, 00:05
Cyprian Kowalczyk
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 06.12.2006, 01:59
R. van Twisk
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 06.12.2006, 03:37
Cyprian Kowalczyk
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 06.12.2006, 06:14
R. van Twisk
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #8  
Alt 06.12.2006, 10:10
Nikolas Hagelstein
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #9  
Alt 07.12.2006, 01:12
R. van Twisk
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] about tslib_eidtools::initFeUser();And not logged in users.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:42 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103