Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #11852 "Unable to load schema" on insert()
Submitted: 2007-08-16 20:00 UTC
From: samatbrink Assigned:
Status: Bogus Package: DB_DataObject (version 1.8.7)
PHP Version: 5.1.6 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 18 + 33 = ?

 
 [2007-08-16 20:00 UTC] samatbrink (Sam McCallum)
Description: ------------ I get an error saying unable to load schema file when I issue an insert(), even though it appears to have already loaded the schema ini. get() works fine. I thought this might be related to #6856, but the latest CVS didn't affect the results. Here is the full (level 5) error: DB_DataObject : databaseStructure : Loaded ini file: /home/harvstr/src/DataObjects/harvstr.ini DB_DataObject : databaseStructure : Cant find database schema: harvstr/ in links file data: Array ( [harvstr] => Array ( [keyword_content_urls] => Array ( [id] => 129 [keyword] => 129 [url] => 130 ) [keyword_content_urls__keys] => Array ( [id] => N ) [keywords] => Array ( [id] => 129 [quality] => 129 [parent] => 129 [date] => 134 [name] => 130 ) [keywords__keys] => Array ( [id] => N ) ) ) DB_DataObject : ERROR : Unable to load schema for database and table (turn debugging up to 5 for full error message) DB_DataObject Error: Unable to load schema for database and table (turn debugging up to 5 for full error message) Test script: --------------- $keyDb = new DB_DataObject('keywords'); $keyDb->name = $keyword; $keyDb->quality = $this->quality; $keyDb->date = $this->date; $keyDb->insert(); Expected result: ---------------- I expect the insert to be successful Actual result: -------------- DB_DataObject : ERROR : Unable to load schema for database and table (turn debugging up to 5 for full error message)

Comments

 [2007-08-29 04:38 UTC] alan_k (Alan Knowles)
Sorry, but your problem does not imply a bug in PEAR itself. For a list of more appropriate places to ask for help using PEAR, please visit http://pear.php.net/support/ as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PEAR. It looks like a configuration issue. Can you use the pear-general mailing list, and work out what is going on. Then if you can think of a better error message file a bug on that. please check the manual - this is not a valid constructor.. $keyDb = new DB_DataObject('keywords');