I've been working on integrating a sitewide login using PEAR::Auth querying the login info in the message board we use. Everything was just fine in my development area, but once I put it onto my web host's server I started running into the wonderful...
Fatal error: Call to a member function on a non-object in /home/sunless/public_html/includes/pear/Auth/Container/DB.php on line 135
This is the area in question:
function query($query)
{
if (!DB::isConnection($this->db)) {
$this->_connect($this->options['dsn']);
}
return $this->db->query($query);
}
and
return $this->db->query($query);
is the line in question....
I know that it's finding PEAR:😃B because it was complaining that it couldn't until I modified the path.
I am calling auth in this section in another script:
// start auth session & set params
$a = new Auth('DB', $opt, '', false);
// expire after 5 minutes
$a->setExpire('300');
$a->start();
I suspect that part of this has to do with the fact that I am developing on php 4.3 and my host is still on 4.2.2, I've been meaning to revert to 4.2.2 to keep things in sync but haven't yet.
I've tried modifying the include path so as to only use my own pear exclusively using php_value include_path .:/home/sunless/public_html/includes/pear but I get the same results.
Any help would be much appreciated!
Thanks,
-dave