ftocc

TB 2.6.1 and Cisco XML Fun..

phonebuff
Posts: 432
Member Since:
2007-02-15

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..



phonebuff
Posts: 432
Member Since:
2007-02-15
Bump ---

Bump ---



gcgov
Posts: 4
Member Since:
2008-07-09
Same problem...

We're having the same problem, only with Polycom phones that are running the new firmware... Any help would be extremely appreciated.



brbourdo
Posts: 378
Member Since:
2007-04-24
Well its declared in

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.

--

Brian Bourdon
www.redwatervoip.com
brian [at] redwatervoip [dot] com
Portland, Oregon



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.