-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Support
-
Affects Version/s: 16.0.19
-
Fix Version/s: None
-
Component/s: FreePBX Framework
-
Labels:None
-
ToDo:
-
Asterisk Version:16.16.1
-
Distro Version:Debian 11
-
Distro:Self Install Debian
Hey,
PHP Version 7.4.28
Including /etc/freepbx.conf in a web page gives me the following error :
Error thrown with message "Call to a member function get() on null"
Stacktrace:
#16 Error in /opt/freepbx/www/admin/libraries/modulefunctions.class.php:746
#15 module_functions:getinfo in /opt/freepbx/www/admin/libraries/BMO/Modules.class.php:340
#14 FreePBX\Modules:getInfo in /opt/freepbx/www/admin/libraries/BMO/Modules.class.php:352
#13 FreePBX\Modules:checkStatus in /opt/freepbx/www/admin/libraries/BMO/Notifications.class.php:596
#12 FreePBX\Notifications:canAddNotification in /opt/freepbx/www/admin/libraries/BMO/Notifications.class.php:140
#11 FreePBX\Notifications:add_error in /opt/freepbx/www/admin/libraries/BMO/Cache.class.php:246
#10 FreePBX\Cache:init in /opt/freepbx/www/admin/libraries/BMO/Cache.class.php:58
#9 FreePBX\Cache:contains in /opt/freepbx/www/admin/libraries/BMO/Modulelist.class.php:65
#8 FreePBX\Modulelist:get in /opt/freepbx/www/admin/libraries/BMO/Modulelist.class.php:19
#7 FreePBX\Modulelist:__construct in /opt/freepbx/www/admin/libraries/BMO/Self_Helper.class.php:124
#6 FreePBX\Self_Helper:autoLoad in /opt/freepbx/www/admin/libraries/BMO/Self_Helper.class.php:37
#5 FreePBX\Self_Helper:__get in /opt/freepbx/www/admin/libraries/modulefunctions.class.php:642
#4 module_functions:getinfo in /opt/freepbx/www/admin/libraries/utility.functions.php:1175
#3 _bootstrap_parse_hooks in /opt/freepbx/www/admin/libraries/utility.functions.php:1151
#2 bootstrap_include_hooks in /opt/freepbx/www/admin/bootstrap.php:292
#1 require_once in /etc/freepbx.conf:10
#0 include in /var/www/repertoire/www/test2.php:2
In a php cli with the same php version, including /etc/freepbx.conf does not produce any error.