Unable to locate the FreePBX BMO Class 'Core'

Today when I was getting into the GUI for one of our warm spare servers, I got a 404 error screen where it shows this line highlighted in /var/www/html/admin/libraries/BMO/Self_Helper.class.php:

throw new \Exception**(sprintf(_(“Unable to locate the FreePBX BMO Class ‘%s’”),$objname)** . sprintf**(_(“A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install %s 2) fwconsole ma enable %s”),$sobjname,$sobjname),404);**

I ran the commands to reinstall the core module from the CLI ( fwconsole ma install core OR fwconsole ma install core 2 -f ) and get the error:

In Notifications.class.php line 475:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘core-general_notice_bindaddre’ for key ‘PRIMARY’

I also ran the command fwconsole ma uninstall core and it says the module isn’t installed and cannot be installed. I run the command to install it and I still get the same error above regarding duplicate entry. When I run the command fwconsole ma enable core, I get the error that the core cannot be enabled. I also tried other commands to upgrade the framework and refresh the signatures and even restoring a last known good backup from the CLI and I continue to get the same error about the core but this time from the the other PHP file Self_Helper.class.php line 212

I looked in both the PHP files ( Notifications and Self Helper ) and went to the lines and saw the code lines. I don’t know what I am supposed to do with them. I accessed the SQL database and tried to search for the duplicate entry ‘core-general_notice_bindaddre’ to see if it needs to be deleted. I was only able to find it in the notifications table where I see that entry. Should I delete this from the SQL table? I really don’t know what to do at this point since I can’t even do a restore without this error popping up so any answers that you know will solve this issue. This is on FreePBX 16 and Asterisk 16.

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