Skip to content

If a module has been disabled and has an uninstall() method, then uninstalling generates an error #140

@Stevehans

Description

@Stevehans

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

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions