Mailinglisten-Archive |
Marian Steinbach schrieb:
> Guten Abend!
>
> [...]
>
> Catchable fatal error: Object of class MDB2_Error could not be
> converted to string in /var/www/_pear/HTTP/Session/Container/MDB2.php
> on line 181
>
> Ich weiß leider mit der Meldung nichts anzufangen.
>
> Zeile 177 bis 181 von MDB2.php sehen so aus:
>
> $query = sprintf("SELECT data FROM %s WHERE id = %s AND expiry >= %d",
> $this->options['table'],
> $this->db->quote(md5($id), 'text'),
> time()
> );
>
> Heißt das, $this->options['table'] oder $this->db->quote(md5($id),
> 'text') gibt anstatt eines Strings MDB2_Error zurück?
>
> Hat jemand eine Ahnung, ob HTTP_Session von PEAR jemals unter PHP5 gelaufen ist?
>
> Danke vielmals!
>
> Marian
>
Ja, vermutlich gibt quote() einen Fehler zurück Das hat aber meiner
Meinung nach nichts mit PHP5/PHP4 zu tun, sondern ich tippe eher darauf
das MDB2 eine benötigte Datei/Klasse nicht findet. Hast das Paket
MDB2_Driver_<dbtype> installiert?
Schreib einmal folgendes vor Zeile 177:
$quoted = $this->db->quote(md5($id);
if (PEAR::isError($quoted)) {
die ( $quoted->getMessage() . ' - ' . $quoted->getUserInfo());
}
Mit der Fehlermeldung die ausgegeben werden sollte kommt man dann schon
weiter...
Gruss Sascha
php::bar PHP Wiki - Listenarchive