I have just started using the directory for phone book and it all works fine when calling in but when someone presses # for the directory without entering anything I get 4 email errors, does anyone know how to fix this or why this happening?
2048: Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /var/lib/asterisk/agi-bin/directory.lib.php on line 86
2048: Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 520
2048: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 557
2048: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1347
Did you ever get this resolved as I am receiving the same errors?
MaG
www.eGuest.ca
I've got the same issue....
anyone?
Myles Blackwood
Helpdesk Admin
Video Insight, Inc.
http://www.video-insight.com
Not sure whether this has been fixed in the latest versions of Directory
Researching brings up some info about issues with Pear DB and that they will not be fixed
http://pear.php.net/bugs/bug.php
http://forums.devshed.com/php-development-5/non-static-method-db-connect-should-not-be-called-statically-462291.html
http://stackoverflow.com/questions/3731156/cannot-connect-to-database-with-pear-php
The fix was to modify the following files
/usr/share/pear/DB.php
/var/lib/asterisk/agi-bin/directory.agi and directory.lib.php
I have some patch files but they are not well tested, so PM me if you want them.
MaG
www.eGuest.ca