Attempting to uninstall a module with an uninstall method from module admin after a module has been disabled results in an error as the module cannot be instantiated.
Not sure whether the uninstall option should be disabled if the module isn't enabled, or whether there needs to be a special case to allow the module to be instantiated when disabled purely for the purpose of calling the uninstall method?
Operating Environment
17.0.16
Relevant log output
Error Returned was: Unable to locate the FreePBX BMO Class 'myModule'
A required module might be disabled or uninstalled.
Recommended steps (run from the CLI):
1) fwconsole ma install myModule
2) fwconsole ma enable myModule
FreePBX Version
FreePBX 17
Issue Description
Attempting to uninstall a module with an uninstall method from module admin after a module has been disabled results in an error as the module cannot be instantiated.
Not sure whether the uninstall option should be disabled if the module isn't enabled, or whether there needs to be a special case to allow the module to be instantiated when disabled purely for the purpose of calling the uninstall method?
Operating Environment
17.0.16
Relevant log output