Lost gui access error is libraries/modulefunctions.class.php:742

I get a error in freepbx of

Whoops

\

Exception

\

ErrorException

/

var

/

www

/

html

/

admin

/

libraries

/

modulefunctions.class.php

details is if (!$module && !$modulelist->is_loaded()) {
$modulelist->initialize($modules);
}

    $module_array = $modulelist->get();
    //ksort for consistency throughout freepbx
    if ($status === false) {
        if (!$module) {
            ksort($module_array);
            $this->getInfoCache[$cacheKey] = $module_array;
            return $module_array;
        } else {
            ksort($modules);
            $this->getInfoCache[$cacheKey] = $modules;
            return $modules;
        }
    } else {
        if (!$module) {
            $modules =  $module_array;
        }
        if (!is_array($status)) {
            // make a one element array so we can use in_array below
            $status = array($status);
        }
        $modules = is_array($modules) ? $modules : array();

Arguments
“Call to a member function get() on null”

Anyone have a solution to this?

in httpd error log have
PHP Fatal error: Call to a member function get() on null in /var/www/html/admin/libraries/modulefunctions.class.php on line 742

I’m runnign
php -v
PHP 5.6.25 (cli) (built: Sep 6 2016 08:19:42)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

on Redhat 7.9

I seen one article that suggest it was an httpd conf issue, I replaced the httpd.conf from a server that never has had this issue but it still remains.

Is there any sort of php dependencies that need to be addressed? Is got to be something that is on the server as code is code and if it works in one place it would work in all.

does anyone know what the bit code is doing and what it’s depended on?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.