Can't save & rebuild extension in Endpoint Manager

Every time I try to save & rebuild an extension in Endpoint Manager for an S500 I get error

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/modules/endpoint/functions.inc/functions_common.php

I ran a fwconsole dbug and get the following

==> /var/log/asterisk/freepbx.log <==
[2017-Apr-08 06:27:49] [WARNING] (librarieOUT > s/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cx panel/functions.inc.php on line 58
[2017-Apr-08 06:27:49] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 67
[2017-Apr-08 06:32:02] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 58
[2017-Apr-08 06:32:02] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 67
[2017-Apr-08 06:32:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 58
[2017-Apr-08 06:32:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 67
[2017-Apr-08 06:33:49] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 58
[2017-Apr-08 06:33:49] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 67
[2017-Apr-08 06:34:34] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 58
[2017-Apr-08 06:34:34] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depr eciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/ functions.inc.php on line 67

It appears to be doing this only for PJSIP

I created this new extension with PJSIP because I’d like to use multiple phones with the same extension.

It’s something with cxpanel module. Do you have all modules updated.

Definitely

I even noticed some new updates today and installed those also.

Well the error is related to cxpanel module which is the iSymphony module. Try disabling that module.

I appreciate the info and quick reply. I will disable that module since we aren’t really using it anyways (we had a trial).

Still getting the same thing

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/modules/endpoint/functions.inc/functions_common.php

  1. Whoops\Exception\ErrorException
    /­var/­www/­html/­admin/­modules/­endpoint/­functions.inc/­functions_common.php3784
  2. Whoops\Run handleError
    /­var/­www/­html/­admin/­modules/­endpoint/­functions.inc/­functions_common.php3784
  3. endpoint_get_tech
    /­var/­www/­html/­admin/­modules/­endpoint/­functions.inc/­functions_common.php1917
  4. endpoint_configVariables
    /­var/­www/­html/­admin/­modules/­endpoint/­functions.inc/­functions_common.php47
  5. endpoint_write_ext
    /­var/­www/­html/­admin/­modules/­endpoint/­views/­page.endpoint.php679
  6. include_once
    /­var/­www/­html/­admin/­modules/­endpoint/­page.endpoint.php10
  7. include
    /­var/­www/­html/­admin/­config.php559

No you have a different error now. Look at your to post. Try a fwconsole chown fom your command line.

I tried fwconsole chown and still got the same error as above.

amportal a r shows the following output. I’m not sure if this is normal or points to something else.

/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_endpoint: No such file or directory
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_endpointman: No such file or directory
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_pagingpro: No such file or directory
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_restapps: No such file or directory
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_ucp: No such file or directory
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_vqplus: No such file or directory
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_xmpp: No such file or directory