TB 2.6.1 and Cisco XML Fun..
Need some help here --
I can't get the External directory or the Services Phone Directory options to work. They both attempt to execute the php script PhoneDirectory.php from /var/www/html/xmlservices.
When I run it manually in Firefox I get the following error;
Fatal error: Call to undefined method DB_Error::setFetchMode() in /var/www/html/xmlservices/include/xmlservices_libs.php on line 96
Line 96 is in this function, but I am lost as to why setFetchMode is undefined, or where is this hierarchy of code it should have been defined.
function getAllSQL($querytxt,$database) {
$db = DB::connect('mysql://root:passw0rd@localhost/'.$database);
$db->setFetchMode(DB_FETCHMODE_ASSOC);
$query = $db->getAll($querytxt);
return $query;
}
I know these functions have always been a pain, and I have done a number of searches. But have not hit on the right answer.. Wish we could collectively get this right and get Kerry to update the distributions.
Anyone with some guidance ?
TIA..
Well its declared in whatever class $db is. Can you see a line $db = new *something* ? If you can find out what file that class is defined in, probably like a "db.inc.php" or something similar, you'll be able to find that function. If you could post what you find, if anything, I'll look for the issue.
I'd do all that myself but I'm at work and don't have access to my box from here.


Member Since:
2007-02-15