FreePBX Framework 2.11.0.12 - Breaks the GUI

Change Log for version 2.11.0.12

2.11.0.12: Restful Library Addition, New Distro Versioning Support
2.11.0.11: #6673, #6682, #6683 #6721
2.11.0.10: #6656

It’s fairly easy to recover from - just re-installed FreePBX over top of it, and then re-updated all the modules except the Framework - Has anyone else seen this?

Greg

You need to help us help you. What does ‘breaks’ mean? Does it mean blank page? if so do some recon work. Update framework and then run: “amportal a dbug” from the cli. Post the errors here.

Your problem will most-likely be from the following:

sip.us
isymphony
xactview

Since I already recovered - just didn’t want to re-invent the wheel and beat on it if someone else had already figured it out.

By breaks, I mean blank screen - no FreePBX Admin screens whatsoever.

Could be iSymphony I guess since we are running the Beta for Version 3 - I will ask Mike if he has seen this problem.

Yes, it is an issue with iSymphony 3 and FreePBX 2.11 and i9 has already released a fix.

Greg

Did a TeamViewer session with Mike at i9 - even with the iSymphony module uninstalled, the framework breaks the GUI - now instead of blank screens, you get an HTTPD timeout if you try to click anything on any menu - I have rolled back, and I think I will wait and see if anyone else is having this problem.

Greg

Hi All,

I have same problem as described above, the issue started just after the latest update.

No access to the admin GUI.

If can be of some help to the community I am available for a teamview session with a developer or if I can be told how to provide debug info as well.

Thank you
Giovanni

please see my next message

Some debug info I see

amportal a dbug

Please wait…

trying to run as user asterisk:

[FPBXDBUGDISABLE] already set to [0]

==> /var/log/asterisk/freepbx_dbug <==

==> /var/log/httpd/error_log <==
sh: lscpu: command not found
[Thu Jan 09 21:13:31 2014] [error] [client 192.168.1.201] File does not exist: /var/www/html/recordings/images
sh: lscpu: command not found
sh: lscpu: command not found
[Thu Jan 09 21:15:44 2014] [error] [client 192.168.1.201] File does not exist: /var/www/html/recording, referer: http://192.168.1.101/admin/config.php
sh: lscpu: command not found
sh: lscpu: command not found
sh: lscpu: command not found
sh: lscpu: command not found
sh: lscpu: command not found

Some debug info I see

amportal a dbug

trying to run as user asterisk:

[FPBXDBUGDISABLE] already set to [0]

==> /var/log/asterisk/freepbx_dbug <==

2014-Jan-09 21:51:40 /var/www/html/admin/libraries/php-upgrade/upgrade.php:772
[USER_WARNING]: json_encode: invalid UTF-8 encoding in string, cannot proceed.

2014-Jan-09 21:51:40 /var/www/html/admin/libraries/php-upgrade/upgrade.php:772
[USER_WARNING]: json_encode: invalid UTF-8 encoding in string, cannot proceed.

2014-Jan-09 21:51:40 /var/www/html/admin/libraries/php-upgrade/upgrade.php:772
[USER_WARNING]: json_encode: invalid UTF-8 encoding in string, cannot proceed.

==> /var/log/httpd/error_log <==
[Thu Jan 09 21:13:31 2014] [error] [client 192.168.1.201] File does not exist: /var/www/html/recordings/images
sh: lscpu: command not found
sh: lscpu: command not found
[Thu Jan 09 21:15:44 2014] [error] [client 192.168.1.201] File does not exist: /var/www/html/recording, referer: http://192.168.1.101/admin/config.php
sh: lscpu: command not found
sh: lscpu: command not found
sh: lscpu: command not found
sh: lscpu: command not found
sh: lscpu: command not found
sh: lscpu: command not found

GSnover,

I asked you last time for some more detailed information and it saddens me that you failed to provide it a second time. If you do run into this again please do as other have done and help us all out and provide the debug information by running

amportal a dbug

I bet you are using php 5.1 which FreePBX 2.11 requires 5.3 or greater.

triotech,

this is what I want you to do.

First run: amportal a dbug

then while that is running go to the web interface and refresh a few times. Post that output here.

Next run this command:

tail -f /var/log/httpd/error_log

Then refresh the page a few more times and post the output

Finally run this command:

tail -f /var/log/asterisk/freepbx.log

and refresh the page and post the output here.

I have the same problem. What should I do to solve it. Is it enough to install new php.

Thanks.

http://www.freepbx.org/forum/general-help/latest-updatesfew-issues - has the same explanation, but it’s the PHP Version on Elastix that is the problem with the Framework - I will post links and a procedure here this afternoon on updating the PHP on an Elastix box for those of us still stuck with them.

Greg

Don’t jump the gun quite yet. We don’t walk around here saying “well you need to update your php version so forget you” we are still working on a fix.

Also Elastix clearly states that if you upgrade to php 5.3 you break their GUI stuff and they do not recommend it. Let us see if we can get a work around for this. That being said FreePBX 12 which is due out this year will not even let you upgrade or install unless you have PHP 5.3

trying to run as user asterisk:

[FPBXDBUGDISABLE] already set to [0]

==> /var/log/asterisk/freepbx_dbug <==

2014-Jan-10 11:40:40 /var/www/html/admin/libraries/gui_auth.php:47
[NOTICE]: Undefined variable: password

2014-Jan-10 11:40:40 /var/www/html/admin/libraries/gui_auth.php:51
[NOTICE]: Undefined variable: username

2014-Jan-10 11:40:40 /var/www/html/admin/libraries/php-asmanager.php:342
[WARNING]: fsockopen() expects parameter 2 to be long, string given

==> /var/log/httpd/error_log <==
sh: lscpu: command not found
sh: lscpu: command not found
[Fri Jan 10 11:23:58 2014] [error] [client 10.227.16.31] File does not exist: /var/www/html/admin/modules/fw_fop/background.jpg, referer: http://trixbox.flexxifinger.biz/admin/modules/fw_fop/flash/operator_panel.swf
[Fri Jan 10 11:38:31 2014] [notice] caught SIGTERM, shutting down
[Fri Jan 10 11:38:31 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jan 10 11:38:31 2014] [notice] SSL FIPS mode disabled
[Fri Jan 10 11:38:31 2014] [notice] Digest: generating secret for digest authentication …
[Fri Jan 10 11:38:31 2014] [notice] Digest: done
[Fri Jan 10 11:38:31 2014] [notice] SSL FIPS mode disabled
[Fri Jan 10 11:38:31 2014] [notice] Apache/2.2.3 (CentOS) configured – resuming normal operations

PHP 5.1.6 (cli) (built: Dec 10 2013 22:14:51)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies

Hope this helps…

I am also experiencing the problem mentioned in the other thread where the links on the pulldown menus don’t work. However, one thing I didn’t see mentioned before was that if I paste the link code into the browser on another tab, I can access the page. However, I have also changed the .htaccess code in the admin folder for the time being to allow all.

We pushed a fix to get around the issue on system with PHP 5.1 and 5.2. You need to update the framework module. If you can not access the GUI to do so here is a full wiki on how to update a module from the CLI.

http://wiki.freepbx.org/display/L1/Upgrading+a+FreePBX+Module+from+the+CLI

FreePBX Framework 2.11.0.14 did the trick for this system. Thanks.

I highly suggest getting off that old PHP as its been EOL for 4 years now.