Reputation: 840
I'm very bored, I backup the site, and I try to re-publish correctly but I have one php error...
PHP Fatal error: Call to undefined method DB_Error::getAll()
check my code :
//renvoi toutes les lignes
public function getAll($p_Req)
{
global $db;
return $db->getAll($p_Req);
}
I have reinstall php 5.2.17 pear 1.9.1 and DB packages 1.7.14
This is the good configuration for this site and I don't touch the code, I don't understand why it doesn't work.
Please help
Upvotes: 1
Views: 2791
Reputation: 157889
For some reason you have instantiated in $db variable not PEAR:DB class but PEAR:DB_Error
You need to doublecheck the source of $db variable.
Upvotes: 1