Edit extension and submit leads to error 500

Hi, I was trying to edit my extension and press submit it gives:

HTTP 500 error
That’s odd… the website can’t display this page
The site may be under maintenance or could have a programming error.

And on the log fie I get this error log:
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:03] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:03] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:58:04] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:6992) - Undefined index: tech
[2017-Nov-24 11:58:04] [PHP-NOTICE] (/var/www/html/admin/modules/paging/Paging.class.php:44) - Undefined index: intercom_override
[2017-Nov-24 11:58:04] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:58:04] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:04] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imapuser
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imappassword
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/Paging.class.php:44) - Undefined index: intercom_override
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/fax/functions.inc.php:88) - Undefined variable: version
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:598) - Undefined index: cxpanel_add_extension
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:599) - Undefined index: cxpanel_auto_answer
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:600) - Undefined index: cxpanel_add_user
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:601) - Undefined index: cxpanel_full_user
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:602) - Undefined index: cxpanel_email_new_pass
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/certman/functions.inc/hook_core.php:64) - Undefined index: cid
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/contactmanager/functions.inc.php:16) - Undefined variable: extens
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/functions.inc.php:645) - Undefined variable: extens
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:7397) - Undefined variable: pport
[2017-Nov-24 11:58:07] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:44:35] [PHP-NOTICE] (/var/www/html/admin/modules/digium_phones/classes/digium_phones.php:2043) - Undefined index: sip_dscp
[2017-Nov-24 11:44:35] [PHP-NOTICE] (/var/www/html/admin/modules/digium_phones/classes/digium_phones.php:2046) - Undefined index: rtp_dscp
[2017-Nov-24 11:44:35] [PHP-NOTICE] (/var/www/html/admin/modules/digium_phones/functions.inc.php:44) - Undefined variable: amp_conf
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:03] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:03] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:58:04] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:6992) - Undefined index: tech
[2017-Nov-24 11:58:04] [PHP-NOTICE] (/var/www/html/admin/modules/paging/Paging.class.php:44) - Undefined index: intercom_override
[2017-Nov-24 11:58:04] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:58:04] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:04] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imapuser
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imappassword
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/Paging.class.php:44) - Undefined index: intercom_override
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/fax/functions.inc.php:88) - Undefined variable: version
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:598) - Undefined index: cxpanel_add_extension
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:599) - Undefined index: cxpanel_auto_answer
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:600) - Undefined index: cxpanel_add_user
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:601) - Undefined index: cxpanel_full_user
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:602) - Undefined index: cxpanel_email_new_pass
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/certman/functions.inc/hook_core.php:64) - Undefined index: cid
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/contactmanager/functions.inc.php:16) - Undefined variable: extens
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/functions.inc.php:645) - Undefined variable: extens
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:7397) - Undefined variable: pport
[2017-Nov-24 11:58:07] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/functions.inc.php:645) - Undefined variable: extens
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:7397) - Undefined variable: pport
[2017-Nov-24 11:58:07] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:44:35] [PHP-NOTICE] (/var/www/html/admin/modules/digium_phones/classes/digium_phones.php:2043) - Undefined index: sip_dscp
[2017-Nov-24 11:44:35] [PHP-NOTICE] (/var/www/html/admin/modules/digium_phones/classes/digium_phones.php:2046) - Undefined index: rtp_dscp
[2017-Nov-24 11:44:35] [PHP-NOTICE] (/var/www/html/admin/modules/digium_phones/functions.inc.php:44) - Undefined variable: amp_conf
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:57:54] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:03] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:03] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:58:04] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:6992) - Undefined index: tech
[2017-Nov-24 11:58:04] [PHP-NOTICE] (/var/www/html/admin/modules/paging/Paging.class.php:44) - Undefined index: intercom_override
[2017-Nov-24 11:58:04] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:58:04] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:04] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imapuser
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imappassword
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/Paging.class.php:44) - Undefined index: intercom_override
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/fax/functions.inc.php:88) - Undefined variable: version
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:598) - Undefined index: cxpanel_add_extension
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:599) - Undefined index: cxpanel_auto_answer
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:600) - Undefined index: cxpanel_add_user
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:601) - Undefined index: cxpanel_full_user
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:602) - Undefined index: cxpanel_email_new_pass
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/certman/functions.inc/hook_core.php:64) - Undefined index: cid
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/contactmanager/functions.inc.php:16) - Undefined variable: extens
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/functions.inc.php:645) - Undefined variable: extens
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:7397) - Undefined variable: pport
[2017-Nov-24 11:58:07] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/paging/functions.inc.php:645) - Undefined variable: extens
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:7397) - Undefined variable: pport
[2017-Nov-24 11:58:07] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:07] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:7397) - Undefined variable: pport
[2017-Nov-24 11:58:07] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:07] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imapuser
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:319) - Undefined variable: vmops_imappassword
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/fax/functions.inc.php:88) - Undefined variable: version
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/functions.inc.php:818) - Undefined variable: imapuser
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:4993) - Undefined index: 0
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:4995) - Undefined index: 1
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:4997) - Undefined index: 2
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:600) - Undefined index: cxpanel_add_user
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:601) - Undefined index: cxpanel_full_user
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/cxpanel/functions.inc.php:602) - Undefined index: cxpanel_email_new_pass
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/certman/functions.inc/hook_core.php:64) - Undefined index: cid
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/contactmanager/functions.inc.php:16) - Undefined variable: extens
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/paging/functions.inc.php:645) - Undefined variable: extens
[2017-Nov-24 11:58:20] [PHP-NOTICE] (/var/www/html/admin/modules/core/functions.inc.php:7397) - Undefined variable: pport
[2017-Nov-24 11:58:20] [PHP-WARNING] (/var/www/html/admin/libraries/BMO/GuiHooks.class.php:95) - strtolower() expects parameter 1 to be string, object given
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 52
[2017-Nov-24 11:58:20] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 61

Can someone please help me.
My FreePBX version is: 120.76.2

Nope. That’s not a valid FreePBX version number.

I see a lot of cxpanel errors in there. I remember someone else having problems with cxpanel a couple of months ago, and the solution was to delete it from the system. Not supported, or no longer compatible? I don’t remember.

Sorry my FreePBX version is :12.76.2

Also It’s not only cxpanal, I can see those error in contactmanager, paging, core, voicemail and so on.

The phone is working fine but when I try to make any changes it leads me to the http 500 error.
And after that the voice mail for that extensions doesn’t work.

Also, I haven’t done anything on the system as this problem started suddenly.

Uninstall CXpanel. See if that helps. If you need cxpanel, reinstall it and see what happens.

This is a warning generated by the code that was inserted by the developers. This is not a PHP warning per se but a note in the code that shows this is a deprecated function that needs to be removed.

This is due to a variable not be initialized (or set with a value) before being used. This is a PHP warning.

This is because the function strtolower() expects a value to be passed to it and there is no value being passed.

Removing the cxpanel will only stop those warnings. It will not stop the rest of the warnings such as the module_getinfo() warning or the non-initialized variable warnings or the warnings about empty/no values being sent to function calls.

I agree that removing cxpanel will not resolve the problem as there are list of programming error. And the main issue is I haven’t done any modification in the system. It was working fine and suddenly I am seeing these kinds of error.

Is there any better solution you can suggest?

You kind of have to live with it. The only way to stop those errors is to modify the PHP config to not log those warnings or update all the code to fix what is causing those warnings.