Registry.php problems
Gary Casterline
casterln at nature.Berkeley.EDU
Fri Feb 8 18:05:53 PST 2002
Hi,
I'm trying to move up to the RELENG cvs versions of horde, imp, and
turba after happily running an older cvs snapshot of horde2 and imp3.
I'm running with php4.0.6 (with a new PEAR) and imap-2001a.
I'd like to use imp for authenticating (once!).
After entering name and password I get this error:
Fatal error: Call to a member function on a non-object in
/opt/apache/htdocs/horde23r/lib/Registry.php on line 600
Line 600 in my Registry.php (after adding few print statements
enlighten myself) is:
$prefs->setDefaults($this->getFileRoot() . '/config/prefs.php');
My prints:
HORDE_BASE = /opt/apache/htdocs/horde23r/imp/lib/../..
$conf['prefs']['driver'] = sql
$conf['auth']['driver'] = imap
app = imp
Auth::getAuth() = myusernaem
Auth::getCredential('password') = mypassword
$conf['prefs']['params'] = Array
Key: phptype, Value: mysql
Key: hostspec, Value: localhost
Key: username, Value: hordemgr
Key: password, Value: horde4cnr
Key: database, Value: horde
Key: table, Value: horde_prefs
$conf['auth']['params'] = Array
Key: server, Value: localhost
Key: protocol, Value: imap
Key: port, Value: 143
Key: folder, Value: mail/
$this->getFileRoot() = /opt/apache/htdocs/horde23r/config/../imp
$this->getFileRoot()/config/prefs.php =
/opt/apache/htdocs/horde23r/config/../imp/config/prefs.php
It looks like SetDefaults is being passed the correct path string.
The imp/config/prefs.php has not been changed from the dist version.
Can anyone tell me where to check next to find out why I'm getting
this "Fatal error: Call to a member function on a non-object"
from
$prefs->setDefaults($this->getFileRoot() . '/config/prefs.php');
_Gary
>From mike at graftonhall.co.nz Date: Sat, 9 Feb 2002 04:25:56 +0000
Return-Path: <mike at graftonhall.co.nz>
Mailing-List: contact horde-help at lists.horde.org; run by ezmlm
Delivered-To: mailing list horde at lists.horde.org
Received: (qmail 47039 invoked from network); 9 Feb 2002 04:21:50 -0000
Received: from unknown (HELO graftonhall.co.nz) (210.54.179.59)
by clark.horde.org with SMTP; 9 Feb 2002 04:21:50 -0000
Received: from localhost [127.0.0.1]
by graftonhall.co.nz [10.0.0.4]
with SMTP (MDaemon.PRO.v5.0.4.R)
for <horde at lists.horde.org>; Sat, 09 Feb 2002 17:25:56 +1300
Received: from 10.0.0.4 ( [10.0.0.4])
as user mike at 10.0.0.4 by head.graftonhall.co.nz with HTTP;
Sat, 9 Feb 2002 04:25:56 +0000
Message-ID: <1013228756.3c64a4d40f997 at head.graftonhall.co.nz>
Date: Sat, 9 Feb 2002 04:25:56 +0000
From: Michael Cochrane <mike at graftonhall.co.nz>
To: horde at lists.horde.org
References: <20020209020553.GA8262 at nature.Berkeley.EDU>
In-Reply-To: <20020209020553.GA8262 at nature.Berkeley.EDU>
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-Originating-IP: 10.0.0.4
X-MDRemoteIP: 127.0.0.1
X-Return-Path: mike at graftonhall.co.nz
X-MDaemon-Deliver-To: horde at lists.horde.org
Subject: Re: [horde] Registry.php problems
Try a dump of $prefs just before that line.
Quoting Gary Casterline <casterln at nature.Berkeley.EDU>:
> Hi,
>
> I'm trying to move up to the RELENG cvs versions of horde, imp, and
> turba after happily running an older cvs snapshot of horde2 and imp3.
> I'm running with php4.0.6 (with a new PEAR) and imap-2001a.
> I'd like to use imp for authenticating (once!).
>
> After entering name and password I get this error:
>
> Fatal error: Call to a member function on a non-object in
> /opt/apache/htdocs/horde23r/lib/Registry.php on line 600
>
> Line 600 in my Registry.php (after adding few print statements
> enlighten myself) is:
>
> $prefs->setDefaults($this->getFileRoot() . '/config/prefs.php');
>
> My prints:
>
> HORDE_BASE = /opt/apache/htdocs/horde23r/imp/lib/../..
> $conf['prefs']['driver'] = sql
> $conf['auth']['driver'] = imap
> app = imp
> Auth::getAuth() = myusernaem
> Auth::getCredential('password') = mypassword
> $conf['prefs']['params'] = Array
> Key: phptype, Value: mysql
> Key: hostspec, Value: localhost
> Key: username, Value: hordemgr
> Key: password, Value: horde4cnr
> Key: database, Value: horde
> Key: table, Value: horde_prefs
> $conf['auth']['params'] = Array
> Key: server, Value: localhost
> Key: protocol, Value: imap
> Key: port, Value: 143
> Key: folder, Value: mail/
> $this->getFileRoot() = /opt/apache/htdocs/horde23r/config/../imp
> $this->getFileRoot()/config/prefs.php =
> /opt/apache/htdocs/horde23r/config/../imp/config/prefs.php
>
>
> It looks like SetDefaults is being passed the correct path string.
> The imp/config/prefs.php has not been changed from the dist version.
>
> Can anyone tell me where to check next to find out why I'm getting
> this "Fatal error: Call to a member function on a non-object"
> from
> $prefs->setDefaults($this->getFileRoot() . '/config/prefs.php');
>
> _Gary
>
> --
> Horde mailing list: http://horde.org/horde/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
More information about the horde
mailing list