Re: DB_DataObject:Unable to load schema for database and table
| From: | Leo Márquez | Date: | Tue, 21 Feb 2006 14:49:24 +0000 |
| Subject: | Re: DB_DataObject:Unable to load schema for database and table | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23065@lists.php.net to get a copy of this message | ||
Thanks for your answer Anselm,
Now the problem seems to be related with myconfig.ini file and require_prefix value.
I have this ini configuration:
database = ...............
schema_location = c:/wamp5/www/myproject/classes (I work in windows)
class_location = c:/wamp5/www/myproject/classes
require_prefix = classes/
In classes directory I have created my own classes for each dataobject like:
PRODUCTS.php dataobject class
myProducts.php extended from PRODUCTS
The include of PRODUCTS.php in myProducts.php is this:
require_once("PRODUCTS.php");
Now when I declare an instance of myProducts I get:
Fatal error: Class 'PRODUCTS' not found in myProducts.php line 3
I think that the require_prefix is not working.
Any ideas?
Thanks
En/na Anselm Heaton ha escrit:
What means 'turn debugging up to 5 for full error message' how and where can I turn it?Add this in your code : DB_DataObject::debugLevel(5); From that point on, DataObject will output every single thing it does (including things like passwords, so don't do this on a live system!). Hopefully you should be able to spot the error that is causing your problem in that output (which may be very verbose). Anselm