Re: DB_DataObject Gone Wild!

From: Date: Thu, 10 Feb 2005 11:46:08 +0000
Subject: Re: DB_DataObject Gone Wild!
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-17476@lists.php.net to get a copy of this message
> > <code><B>db_dataobject_generator: 0:</B> CREATING FOR 0 > > </code><BR> > > DB_DataObject Error: DB Error: not found > This is usually caused by a) include paths not set up correctly (/me wishes pear DB would just remove the @include wrapper code and throw warnings - it's a programming error/setup error, not a runtime error) b) dl('mysql.so|dll'); etc. has failed. Regards Alan > > > If I try to browse through a page that uses the data object I get the > following: > > DB_DataObject Error: DB Error: not found > > > > So I turned debugging up to level 5 and I get this: > > <code><B>dataobjects_portfolio_clients: __find:</B> </code><BR> > <code><B>dataobjects_portfolio_clients: CONNECT:</B> NEW > CONNECTION</code><BR> > <code><B>dataobjects_portfolio_clients: CONNECT:</B> 1 > c4ca4238a0b923820dcc509a6f75849b</code><BR> > <code><B>dataobjects_portfolio_clients: CONNECT:</B> > a:1:{s:32:"c4ca4238a0b923820dcc509a6f75849b";O:8:"db_error":8:{s:20:"error_message_prefix";s:0:"";s:4:"mode";i:1;s:5:"level";i:1024;s:4:"code";i:-4;s:7:"message";s:19:"DB > Error: not found";s:8:"userinfo";s:43:"Unable to include the DB/1.php file for > 1'";s:9:"backtrace";a:11:{i:0;a:6:{s:4:"file";s:86:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/includes/DB.php";s:4:"line";i:748;s:8:"function";s:10:"pear_error";s:5:"class";s:8:"db_error";s:4:"type";s:2:"->";s:4:"args";a:5:{i:0;s:19:"DB > Error: not found";i:1;i:-4;i:2;i:1;i:3;i:1024;i:4;s:43:"Unable to include the DB/1.php > file for > 1'";}}i:1;a:6:{s:4:"file";s:88:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/includes/PEAR.php";s:4:"line";i:523;s:8:"function";s:8:"db_error";s:5:"class";s:8:"db_error";s:4:"type";s:2:"->";s:4:"args";a:4:{i:0;i:-4;i:1;i:1;i:2;i:1024;i:3;s:43:"Unable > to include the DB/1.php file for > 1'";}}i:2;a:6:{s:4:"file";s:86:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/includes/DB.php";s:4:"line";i:380;s:8:"function";s:10:"raiseerror";s:5:"class";s:4:"pear";s:4:"type";s:2:"::";s:4:"args";a:7:{i:0;N;i:1;i:-4;i:2;N;i:3;N;i:4;s:43:"Unable > to include the DB/1.php file for > 1'";i:5;s:8:"DB_Error";i:6;b:1;}}i:3;a:6:{s:4:"file";s:97:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/includes/DB/DataObject.php";s:4:"line";i:1970;s:8:"function";s:7:"connect";s:5:"class";s:2:"db";s:4:"type";s:2:"::";s:4:"args";a:1:{i:0;s:1:"1";}}i:4;a:4:{s:8:"function";s:8:"_connect";s:5:"class";s:29:"dataobjects_portfolio_clients";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:5;a:6:{s:4:"file";s:97:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/includes/DB/DataObject.php";s:4:"line";i:1681;s:8:"function";s:15:"debug_backtrace";s:5:"class";s:29:"dataobjects_portfolio_clients";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:6;a:4:{s:8:"function";s:5:"table";s:5:"class";s:29:"dataobjects_portfolio_clients";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:7;a:6:{s:4:"file";s:97:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/includes/DB/DataObject.php";s:4:"line";i:387;s:8:"function";s:15:"debug_backtrace";s:5:"class";s:29:"dataobjects_portfolio_clients";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:8;a:4:{s:8:"function";s:4:"find";s:5:"class";s:29:"dataobjects_portfolio_clients";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:9;a:6:{s:4:"file";s:100:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/modules/Portfolio/clients.php";s:4:"line";i:22;s:8:"function";s:15:"debug_backtrace";s:5:"class";s:29:"dataobjects_portfolio_clients";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:10;a:4:{s:4:"file";s:93:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/portfolio_settings.php";s:4:"line";i:166;s:4:"args";a:1:{i:0;s:100:"/home/httpd/vhosts/blitzagency.com/subdomains/portfolio/httpdocs/admin/modules/Portfolio/clients.php";}s:8:"function";s:7:"include";}}s:8:"callback";N;}}</code><BR> > DB_DataObject Error: DB Error: not found > > > > Google wasn’t much help either, only reference on this stuff I could > find seemed to be issues with bugs in the newest php (4.3.10). > > > > I’m just not sure where to look to start debugging this issue any help > will be greatly appreciated. > > > > > > > > > > > > > Justin Bastedo > Developer > > justinb@blitzagency.com > p 310-551-0200 x221 > f 310-551-0022 > > > 405 S Beverly Drive, > 3rd Floor - Beverly > Hills, CA 90212 > > > > > >

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