Load Preferences

Samuel Mota samuel@gsw.com.br
Thu, 3 Jan 2002 14:43:48 -0200


Hi,

I'm with problems when I allow users to login direct into Gollem (using IMP
as myt Horde auth).

when the user are logged in the framework I have no problems, Gollem works
fine, but when I try to go direct to loggin into Gollem the object variable
$prefs are not loaded and when I login the message appear:

Fatal error: Call to a member function on a non-object in
/var/www/intranet/horde-2.0/gollem/lib/Gollem.php on line 66

Line 66 is "$prefs->setValue('ftphost', $servers[$svr]['server']);"

I tryied to find where in Gollem is the function to set the $prefs session
variable and I couldn't ... I found where it is set locally but not in
Session .. I think I'm tired (I need to sleep:) ... could someone tell me?

thanks

Samuel



>From jan@horde.org Date: Thu,  3 Jan 2002 17:39:23 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 13539 invoked from network); 3 Jan 2002 16:44:52 -0000
Received: from mailout06.sul.t-online.com (194.25.134.19)
  by clark.horde.org with SMTP; 3 Jan 2002 16:44:52 -0000
Received: from fwd05.sul.t-online.de 
	by mailout06.sul.t-online.de with smtp 
	id 16MAvL-0001lz-09; Thu, 03 Jan 2002 17:40:59 +0100
Received: from linux.wg.de (320034214675-0001@[217.225.46.126]) by fmrl05.sul.t-online.com
	with esmtp id 16MAvG-1dk5w0C; Thu, 3 Jan 2002 17:40:54 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g03GdN917546
	for <dev@lists.horde.org>; Thu, 3 Jan 2002 17:39:23 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Thu,  3 Jan 2002 17:39:23 +0100
Message-ID: <1010075963.3c34893b3f8c2@linux.wg.de>
Date: Thu,  3 Jan 2002 17:39:23 +0100
From: Jan Schneider <jan@horde.org>
To: dev@lists.horde.org
References: <20020102133328.E5893473@arkady.horde.org> <1010072698.3c347c7a12073@marina.horde.org> <1010073353.3c347f0983e5d@linux.wg.de> <1010074468.3c348364ebb99@marina.horde.org>
In-Reply-To: <1010074468.3c348364ebb99@marina.horde.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [dev] Re: [cvs] cvs commit: imp login.php redirect.php horde/lib Lang.php

Zitat von Chuck Hagenbuch <chuck@horde.org>:

> Quoting Jan Schneider <jan@horde.org>:
> 
> > The cookie stores the language the user eventually selected on the
> login 
> > screen.
> 
> I know I've missed a lot lately, but is there a reason you need to store
> this 
> seperately instead of processing it in redirect.php?

Yes, we need to pass this value through all pages during a session, so that 
we can select this language in Lang::select() if appropriate. Otherwise it 
would get overriden by the browser language.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::


>From jan@horde.org Date: Thu,  3 Jan 2002 17:52:41 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 14296 invoked from network); 3 Jan 2002 17:01:09 -0000
Received: from mailout09.sul.t-online.com (194.25.134.84)
  by clark.horde.org with SMTP; 3 Jan 2002 17:01:09 -0000
Received: from fwd00.sul.t-online.de 
	by mailout09.sul.t-online.de with smtp 
	id 16MBEp-0003tu-07; Thu, 03 Jan 2002 18:01:07 +0100
Received: from linux.wg.de (320034214675-0001@[217.225.46.126]) by fmrl00.sul.t-online.com
	with esmtp id 16MBEc-0iOIVsC; Thu, 3 Jan 2002 18:00:54 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g03Gqf917655
	for <dev@lists.horde.org>; Thu, 3 Jan 2002 17:52:41 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Thu,  3 Jan 2002 17:52:41 +0100
Message-ID: <1010076761.3c348c59223dd@linux.wg.de>
Date: Thu,  3 Jan 2002 17:52:41 +0100
From: Jan Schneider <jan@horde.org>
To: dev@lists.horde.org
References: <DJEILBHPPNCLMOPLANCHGEBFJPAA.samuel@gsw.com.br>
In-Reply-To: <DJEILBHPPNCLMOPLANCHGEBFJPAA.samuel@gsw.com.br>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [dev] Load Preferences

Zitat von Samuel Mota <samuel@gsw.com.br>:

> Hi,
> 
> I'm with problems when I allow users to login direct into Gollem (using
> IMP
> as myt Horde auth).
> 
> when the user are logged in the framework I have no problems, Gollem
> works
> fine, but when I try to go direct to loggin into Gollem the object
> variable
> $prefs are not loaded and when I login the message appear:
> 
> Fatal error: Call to a member function on a non-object in
> /var/www/intranet/horde-2.0/gollem/lib/Gollem.php on line 66
> 
> Line 66 is "$prefs->setValue('ftphost', $servers[$svr]['server']);"
> 
> I tryied to find where in Gollem is the function to set the $prefs
> session
> variable and I couldn't ... I found where it is set locally but not in
> Session .. I think I'm tired (I need to sleep:) ... could someone tell
> me?

This is the reason why logging into the Horde framework is necessary. The 
preferences backend is initialized in the Registry:: class and depends on a 
valid authenticated user.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::