SipStation Module upgrgaded - Broken

Updated the sipstation module now it appears as a blank page.

FreePBX v. 2.11.0.10
Asterisk v. 1.6.2.20

Please help me

Thanks in advance,
Joe

forgot to mention updated to sip station v. 2.11.1.0beta12

Anyone know when the next supported version of SipStation is due for release?

Hi Jmituzas. Looks like you may have an extremely old version of PHP. Also did you know that FreePBX 2.11 does not support Asterisk 1.6?

first run this: ‘php -v’ (post the output here)
next please run this command: ‘tail -f /var/log/httpd/error_log’ and then refresh the page and post the results here.

the SIPStation module was written for newer versions of PHP and FreePBX 2.11 which supports Asterisk 1.8+. I have a strong feeling you are on PHP 5.1.6

Correct 5.1.6

I have updated to Asterisk 1.8 :slight_smile:

Don’t want to run yum update.

Last time I have did this we lost connection to our recorded calls because it changed directory location

Thu Sep 26 09:56:43 2013] [error] [client 10.30.20.173] File does not exist: /var/www/local/phone/favicon.ico
[Thu Sep 26 10:00:03 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?display=findmefollow
[Fri Sep 27 14:02:54 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?type=&display=extensions&extdisplay=8232
[Fri Sep 27 14:03:04 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?type=&display=extensions&extdisplay=8232
[Fri Sep 27 14:03:16 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?type=&display=extensions&extdisplay=8232
[Fri Sep 27 14:03:26 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?type=&display=extensions&extdisplay=8232
[Fri Sep 27 14:03:35 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?type=&display=extensions&extdisplay=8232
[Fri Sep 27 14:04:56 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?display=modules
[Fri Sep 27 14:06:56 2013] [error] [client 10.30.20.173] PHP Fatal error: Call to undefined function json_last_error() in /var/www/html/admin/modules/sipstation/functions.inc/pest/PestJSON.php on line 96, referer: http://phone.freeforallinc.com/admin/admin/config.php?display=dahdi

How do I upgrade php?

I upgrade php to php-5.3
now new issue

PHP Fatal error: require_once(): Failed opening required ‘DB.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/html/admin/libraries/db_connect.php on line 14

when upon trying to install i get:
Running transaction check
—> Package php-common.i386 0:5.1.6-40.el5_9 set to be updated
—> Package php-pear.noarch 1:1.4.9-8.el5 set to be updated
–> Processing Conflict: php53-common conflicts php-common
–> Finished Dependency Resolution
php53-common-5.3.3-13.el5_9.1.i386 from installed has depsolving problems
–> php53-common conflicts with php-common
Error: php53-common conflicts with php-common

and yum install php53-pear-DB
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile

so how do i get this to work?

You shouldn’t have installed PHP 5.3. But since you did you now need to find pearDB. Try using ‘yum list php53-pear*’

yum list php53-pear*
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile

If you are unable to find an RPM for php-pear-DB, you can also do the following if you have pear already installed:

pear install DB

Oh boy installed pear DB

now go to admin page get the following:

FATAL ERROR

DB Error: extension not found

Trace Back

/var/www/html/admin/libraries/db_connect.php:63 die_freepbx()
[0]: DB Error: extension not found

/var/www/html/admin/bootstrap.php:98 require_once()
[0]: /var/www/html/admin/libraries/db_connect.php

/etc/freepbx.conf:8 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:109 include_once()
[0]: /etc/freepbx.conf

pear install DB

WARNING: “pear/DB” is deprecated in favor of "pear/MDB2"
downloading DB-1.7.14.tgz …
Starting to download DB-1.7.14.tgz (133,103 bytes)
…done: 133,103 bytes
install ok: channel://pear.php.net/DB-1.7.14

pear version
PEAR Version: 1.9.4
PHP Version: 5.3.3
Zend Engine Version: 2.3.0

have added the following to php.ini:
include_path=’.:/usr/bin/pear/
also tried include_path=’.:/usr/share/pear/

both bring blank page when trying to view admin page also when I run tail -f /var/log/httpd/error_log I get the following:
PHP Fatal error: require_once(): Failed opening required ‘DB.php’ (include_path=’.:/usr/bin/pear/’) in /var/www/html/admin/libraries/db_connect.php on line 14

Odd… I read that pear install DB suppose to get me DB.php, but:
find: DB.php: No such file or directory

So how do I get DB.php??

Yes PearDB provides DB.php. You’ve severely messed up your system doing a php5.3 upgrade. We were in the process of releasing a fix for php 5.1.6 which would have fixed your issues without you having to upgrade to 5.3, but now I am at a loss as to how to help you.