[imp] php error

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Tue Feb 7 07:55:07 PST 2006


Quoting Daniel Kucharski <horde at inspiran.be>:

> Greetings, when I open an email I get following error:
>
> Fatal error: Call to undefined method DB_Error::setOption() in
> /home/inspiran/www/office/mail/horde/lib/Horde/History.php on line 61
>
>
> Anyone can tell me which package i forgot to install?

Probably nothing.  _Probably_ you can't connect to the DB for some reason,
so it returns an error instead of a connection, and causes the above error.
You can "solve" this with the following patch which I submitted but was
never used, probably because it was included with another bogus patch.

RCS file: /repository/framework/History/History.php,v
retrieving revision 1.28.2.9
diff -r1.28.2.9 History.php
59a60,62
>         if (is_a($this->_db, 'PEAR_Error')) {
>             Horde::fatal($this->_db, __FILE__, __LINE__);
>         }

This will give you the actual error instead of a false error, and hence
tell you what is really happening.

> Thank you,
>
> Daniel

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Go Longhorns!


More information about the imp mailing list