Re: Problem with /Mail/Queue/Container/db.php

From: Date: Fri, 05 Aug 2005 17:30:28 +0000
Subject: Re: Problem with /Mail/Queue/Container/db.php
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20291@lists.php.net to get a copy of this message
Hi,
First, thanks for the quick response.
you're welcome
I've installed the db.php as you said, from the cvs. However, it still gives a "call to undefined function" error, only line# and fn changed:
*Fatal error*: Call to undefined function: getrow() in */home/secretwl/public_html/fm/Mail/Queue/Container/db.php* on line *302*
I still believe there's a (lost?) connection problem. Who wrote the script didn't check for errors returned by Mail_Queue, so it dies while trying to call a PEAR::DB function (getRow) on a PEAR_Error object. If you have the script, add a few error checks after each method call: =========================== $res = $mail_queue->get(...); if (PEAR::isError($res)) {
    var_dump($res->getUserInfo());
    exit;
} ===========================
Could that be anything else? Or, should I install any other files from the cvs's like all of /Mail/ or at least Container/mdb.php etc?
no, if you only use the DB container, that's all you need. Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo

« previous php.pear.general (#20291) next »