UCP goes offline when trying to change call forwarding

Hello,

Running FreePBX 6.12.65-20 with UCP 12.0.23

When trying to change call forwarding UCP displays “You are currently working in offline mode.”

The Chrome console shows that it is getting a 403 (Forbidden) for this URL:
http://serveraddress/ucp/index.php?quietmode=1&module=callforward&command=settings

I’ve reset permissions and tried everything mentioned in other posts in the forum but can’t figure it out.

Any thoughts would be GREATLY appreciated!

Check the httpd log for clues (/var/log/httpd/error_log). Look for entries with time stamps that coincide with when the error occurs.

Lorne

The client address is 10.20.30.10 and these are the errors pertaining to it:

[Thu Jun 11 18:18:31 2015] [error] [client 10.20.30.10] File does not exist: /var/www/html/ucp, referer: http://10.20.30.253/ucp/?display=dashboard&mod=settings&sub=100 sh: amportal: command not found [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 2195, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1217, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1666, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 1387, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1683, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /var/www/html/admin/libraries/sql.functions.php on line 24, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 2195, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1217, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1666, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 1387, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1683, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /var/www/html/admin/libraries/sql.functions.php on line 24, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 2195, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1217, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1292, referer: http://10.20.30.253/admin/config.php [Thu Jun 11 18:55:29 2015] [error] [client 10.20.30.10] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 1387, referer: http://10.20.30.253/admin/config.php

Firstly you should go update all of your modules. The UCP you have is outdated by 28 days.

I had checked several times before posting and 12.0.24 wasn’t showing as an option. Just checked now, updated and applied config. but still the same issue.

“File does not exist” in the first error seems like that would be the issue. I’ve also uninstalled / reinstalled UCP but no help.

Just updated post subject - it’s ANY change in UCP. Always get a 403 forbidden - it definitely seems to be a permissions issue. I HAVE run amportal chown.

I resolved this. I had selectively created a Linked User for a couple of extensions and set a Custom Username and password. These were the users I was having issues with UCP.

I discovered the resolution when I ran “amportal a userman m” to migrate all users into User Manager and then ran “amportal a ucp enableall” to enable them. Any of the users that WEREN’T the ones I had created the Linked User for manually WORKED. So I deleted the users I created manually, ran the above commands again, and now UCP works for all users.

Thanks for your responses.

1 Like

Can you reproduce this reliably? If so please file a bug at http://issues.freepbx.org with version numbers and the precise steps to reproduce. I have been unable to confirm based on the above.

Thanks for this post. It saved me. Had an old system we upgrade and they have like 50 ext. amportal a userman m was a life saver!! Thanks!!!

I know the topic is old but i was able to reproduce the issue very easily ( just end up with same issue).
Asterisk 11.21.2
and freepbx 6.12.65-31
i know it’s end of life but for me it’s still the most stable version. you will experience the probleme if you create the user from the extension config ( like stated in earlier).

This has been fixed in freepbx 13