FreePBX 12 UCP setting item does not work

Hello! If you change the settings in the setup menu (Find Me/Follow Me, Call Forwarding, Call Waiting, Do Not Disturb), the message “You are currently working in offline mode”, the settings are not applied. What is wrong I do?
FreePBX-32bit-6.12.65
AsteriskNOW-612-current-32 - same here
Thanks!

You are getting an internal service error and are getting disconnected.

Why do you provide us some debug. http://wiki.freepbx.org/display/GHWF/Providing+Great+Debug

I found out when it happens! If the extensions number format 1XX (100, 101, 102…) everything works, and if 0XX (010, 011, 012…), there is no. We have 30 extensions in the format of 010-040 ((( You can fix this?

amportal a dbug

it shows only

Fetching FreePBX settings with gen_amp_conf.php..

trying to run as user asterisk:

[FPBXDBUGDISABLE] already set to [0]

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

==> /var/log/httpd/error_log <==
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] 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://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] 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://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] 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://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] 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://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] 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://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] PHP Strict Standards:  Non-static method module_functions::create() should not be called statically, assuming $this from incompatible context in /var/www/html/admin/libraries/BMO/Modules.class.php on line 28, referer: http://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] PHP Strict Standards:  Non-static method module_functions::create() should not be called statically, assuming $this from incompatible context in /var/www/html/admin/libraries/BMO/Modules.class.php on line 28, referer: http://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:17 2015] [error] [client 192.168.0.12] PHP Strict Standards:  Non-static method module_functions::create() should not be called statically, assuming $this from incompatible context in /var/www/html/admin/libraries/BMO/Modules.class.php on line 28, referer: http://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:18 2015] [error] [client 192.168.0.12] PHP Notice:  Undefined offset: 1 in /var/www/html/admin/modules/ucpnode/Ucpnode.class.php on line 156, referer: http://192.168.0.89/admin/config.php
[Tue Feb 10 10:49:18 2015] [error] [client 192.168.0.12] PHP Strict Standards:  Non-static method module_functions::create() should not be called statically, assuming $this from incompatible context in /var/www/html/admin/libraries/BMO/Modules.class.php on line 28, referer: http://192.168.0.89/admin/config.php

==> /var/log/asterisk/freepbx.log <==
[2015-Feb-10 11:09:49] [PHP-NOTICE] (/var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php:207) - Undefined index: State
[2015-Feb-10 11:09:49] [PHP-NOTICE] (/var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php:207) - Undefined index:
[2015-Feb-10 11:10:02] [PHP-WARNING] (/var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0) - No license for this product (PBXact) - make sure zend_loader.license_path is properly configured in your ini file!
[2015-Feb-10 11:10:02] [PHP-WARNING] (/var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0) - License check failed!
[2015-Feb-10 11:15:01] [PHP-WARNING] (/var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0) - No license for this product (PBXact) - make sure zend_loader.license_path is properly configured in your ini file!
[2015-Feb-10 11:15:01] [PHP-WARNING] (/var/www/html/admin/modules/qxact_reports/functions.inc/import_queue_data.php:0) - License check failed!
[2015-Feb-10 11:17:32] [INFO] (bin/freepbx_setting:42) - trying to run as user asterisk:
[2015-Feb-10 11:17:32] [INFO] (bin/freepbx_setting:43) -
[2015-Feb-10 11:17:32] [INFO] (bin/freepbx_setting:64) - [FPBXDBUGDISABLE] already set to [0]
[2015-Feb-10 11:17:32] [INFO] (bin/freepbx_setting:65) -
[2015-Feb-10 11:17:42] [PHP-WARNING] (/var/www/html/admin/modules/ucp/htdocs/includes/User.class.php:202) - session_destroy(): Trying to destroy uninitialized session
[2015-Feb-10 11:17:53] [PHP-NOTICE] (/var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php:207) - Undefined index: State
[2015-Feb-10 11:17:53] [PHP-NOTICE] (/var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php:207) - Undefined index:

Should be fixed by updating UCP to 12.0.2

Thank you so much! Works!

I’m also having problems getting presence to work in UCP. Below is my debug:

# amportal a dbug

Fetching FreePBX settings with gen_amp_conf.php..

trying to run as user asterisk:

[FPBXDBUGDISABLE] changed from previous value: [1] to new value: [0]

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

==> /var/log/httpd/error_log <==
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:56 2015] [error] [client 192.168.0.100] PHP Notice:  Undefined offset: 1 in /var/www/html/admin/modules/ucpnode/Ucpnode.class.php on line 162, referer: http://192.168.0.105/admin/config.php
[Wed Mar 11 15:40:15 2015] [error] [client 192.168.0.1] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error' in /var/www/html/admin/modules/userman/Userman.class.php:676\nStack trace:\n#0 /var/www/html/admin/modules/userman/Userman.class.php(676): PDOStatement->fetch(2)\n#1 /var/www/html/admin/modules/ucp/Ucp.class.php(436): FreePBX\\modules\\Userman->getModuleSettingByID('1', 'ucp|Presencesta...', 'enabled', true)\n#2 /var/www/html/admin/modules/ucp/htdocs/includes/UCP.class.php(82): Ucp->getSetting('Dave', 'Presencestate', 'enabled')\n#3 /var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php(23): UCP\\UCP->getSetting('Dave', 'Presencestate', 'enabled')\n#4 /var/www/html/admin/modules/ucp/htdocs/includes/Module_Helpers.class.php(119): UCP\\Modules\\Presencestate->__construct(Object(UCP\\Modules))\n#5 /var/www/html/admin/modules/ucp/htdocs/includes/Module_Helpers.class.php(33): UCP\\Module_Helpers->autoload('Presencestate')\n#6 /var/www/html/admin/modules/ucp/htdocs/includes/Modules.class.php(84): UCP\\Module_Helpers->__get('Presencestate in /var/www/html/admin/modules/userman/Userman.class.php on line 676, referer: http://foo.net/ucp/?display=dashboard&mod=presencestate

==> /var/log/asterisk/freepbx.log <==
[2015-Mar-11 15:43:17] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory
[2015-Mar-11 15:43:18] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:243) - in_array() expects parameter 2 to be array, boolean given
[2015-Mar-11 15:43:23] [PHP-NOTICE] (/var/www/html/admin/views/module_admin/main.php:66) - Undefined index: type
[2015-Mar-11 15:43:23] [PHP-NOTICE] (/var/www/html/admin/views/module_admin/main.php:210) - Undefined index: type
[2015-Mar-11 15:43:24] [PHP-NOTICE] (/var/www/html/admin/libraries/view.functions.php:57) - Undefined variable: amp_conf
[2015-Mar-11 15:43:24] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2015-Mar-11 15:46:23] [INFO] (bin/freepbx_setting:42) - trying to run as user asterisk:
[2015-Mar-11 15:46:23] [INFO] (bin/freepbx_setting:43) - 
[2015-Mar-11 15:46:24] [INFO] (bin/freepbx_setting:79) - [FPBXDBUGDISABLE] changed from previous value: [1] to new value: [0]
[2015-Mar-11 15:46:24] [INFO] (bin/freepbx_setting:80) - 

Can anyone advise what my problem could be?

Your database is corrupt. Repair it.

OK I just ran:

mysqlcheck --repair --use-frm --all-databases

debug now shows:

amportal a dbug

Fetching FreePBX settings with gen_amp_conf.php..

trying to run as user asterisk:

[FPBXDBUGDISABLE] already set to [0]

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

here


2015-Mar-11 16:20:24	/var/www/html/admin/modules/endpoint/functions.inc/functions_common.php:6


here



==> /var/log/httpd/error_log <==
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:52 2015] [error] [client 192.168.0.100] 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://192.168.0.105/admin/config.php
[Wed Mar 11 11:11:56 2015] [error] [client 192.168.0.100] PHP Notice:  Undefined offset: 1 in /var/www/html/admin/modules/ucpnode/Ucpnode.class.php on line 162, referer: http://192.168.0.105/admin/config.php
[Wed Mar 11 15:40:15 2015] [error] [client 192.168.0.1] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error' in /var/www/html/admin/modules/userman/Userman.class.php:676\nStack trace:\n#0 /var/www/html/admin/modules/userman/Userman.class.php(676): PDOStatement->fetch(2)\n#1 /var/www/html/admin/modules/ucp/Ucp.class.php(436): FreePBX\\modules\\Userman->getModuleSettingByID('1', 'ucp|Presencesta...', 'enabled', true)\n#2 /var/www/html/admin/modules/ucp/htdocs/includes/UCP.class.php(82): Ucp->getSetting('Dave', 'Presencestate', 'enabled')\n#3 /var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php(23): UCP\\UCP->getSetting('Dave', 'Presencestate', 'enabled')\n#4 /var/www/html/admin/modules/ucp/htdocs/includes/Module_Helpers.class.php(119): UCP\\Modules\\Presencestate->__construct(Object(UCP\\Modules))\n#5 /var/www/html/admin/modules/ucp/htdocs/includes/Module_Helpers.class.php(33): UCP\\Module_Helpers->autoload('Presencestate')\n#6 /var/www/html/admin/modules/ucp/htdocs/includes/Modules.class.php(84): UCP\\Module_Helpers->__get('Presencestate in /var/www/html/admin/modules/userman/Userman.class.php on line 676, referer: http://foo.org/ucp/?display=dashboard&mod=presencestate

==> /var/log/asterisk/freepbx.log <==
[2015-Mar-11 16:33:34] [PHP-NOTICE] (/var/www/html/admin/libraries/view.functions.php:41) - Undefined variable: amp_conf
[2015-Mar-11 16:33:34] [PHP-NOTICE] (/var/www/html/admin/libraries/view.functions.php:57) - Undefined variable: amp_conf
[2015-Mar-11 16:33:34] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:243) - in_array() expects parameter 2 to be array, boolean given
[2015-Mar-11 16:33:34] [PHP-NOTICE] (/var/www/html/admin/libraries/view.functions.php:41) - Undefined variable: amp_conf
[2015-Mar-11 16:33:34] [PHP-NOTICE] (/var/www/html/admin/libraries/view.functions.php:57) - Undefined variable: amp_conf
[2015-Mar-11 16:33:34] [PHP-NOTICE] (/var/www/html/admin/views/footer.php:191) - Undefined index: HTTP_USER_AGENT
[2015-Mar-11 16:34:59] [INFO] (bin/freepbx_setting:42) - trying to run as user asterisk:
[2015-Mar-11 16:34:59] [INFO] (bin/freepbx_setting:43) - 
[2015-Mar-11 16:34:59] [INFO] (bin/freepbx_setting:64) - [FPBXDBUGDISABLE] already set to [0]
[2015-Mar-11 16:34:59] [INFO] (bin/freepbx_setting:65) -

Reinstall presence state. If that doesnt work then reinstall user man.

Alternatively you can run:

mysql
use asterisk;
SELECT a.val, a.type FROM freepbx_users_settings a, freepbx_users b WHERE b.id = 1 AND b.id = a.uid AND a.module = 'ucp|Presencestate' AND a.key = 'enabled';

I just installed prosody (I removed it previously) and now it seems to work, I guess presence needs prosody to function?

No that is not true. Where did you read that? Your errors have nothing at all to do with Prosody.

I have the same problem but with Call History in UCP
and the output for “amportal a dbug”:

# amportal a dbug

==> /var/log/asterisk/freepbx_debug <==
2015-Mar-30 13:07:55    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

2015-Mar-30 13:07:56    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

2015-Mar-30 13:07:56    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

2015-Mar-30 13:07:57    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

2015-Mar-30 13:07:57    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

2015-Mar-30 13:07:58    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

2015-Mar-30 13:07:58    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

2015-Mar-30 13:08:02    /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

Thanks for help…

Please go into more detail.

Thanks for reply, but i’m not an expert,server details:
Ubuntu 14.04.2 LTS
Asterisk 13
FreePBX 12

No I mean please describe what is happening when you click it.

Thanks for reply,
I’m enter the account correctly UCP, but when i click to Call History this massage appear to me in the UCP:

You are currently working in offline mode.

My problem with “Call History” in UCP resolved when i make “WebRTC Phone” Module "Disabled"
But i still need to enable “WebRTC Phone” Module.

Did you run “amportal a dbug” when you clicked on the page or after the fact?

I’m already run “amportal a dbug” then i clicked on the page “Call History” in UCP immediately, and the events i already sent is from my click

There are no errors in the log. Sorry.