RE: [PEAR] DataObject fatal error?
| From: | Mike Carter | Date: | Mon, 09 Feb 2004 14:07:25 +0000 |
| Subject: | RE: [PEAR] DataObject fatal error? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10569@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Norbert Mocsnik [mailto:pear-general@mocsnik.hu]
>
> Mike Carter wrote:
> >>Fatal error: Call to undefined function: tableinfo() in
> >>/usr/local/lib/php/DB/DataObject/Generator.php on line 629
> >
> >
> > Sorry, the above error should read "line 642".
>
> Generator.php, line 629:
> $defs = $__DB->tableInfo($table);
> The reason for such an error indicates that your $__DB
> variable is not
> valid. Did you do proper error checking in your code before
> calling the
> function that produces this error? Maybe your database
> connection is broken.
>
> You may try calling DB_DataObject::debugLevel(5); to find the error.
Thanks for the response, I discovered the db connection error just before
lunhc. Strangley restarting MySQL service removed the problem (!)
What made it more odd is that connecting directly to the MySQL dbase using a
win32 app such as MySQL-Front worked fine before the restart of the service
(hence my confusion as to why it was not working in PHP).
Regards,
Mike C.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________