Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Stevehans opened this issue Jul 4, 2024 · 1 comment
Assignees
Labels

Comments

@Stevehans
Copy link
Contributor

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
@Rverma032 Rverma032 self-assigned this Jul 9, 2024
@kguptasangoma kguptasangoma removed the triage Triage label Jul 10, 2024
@kguptasangoma
Copy link
Member

Freepbx 16 also behaving the same so does not looks like php 8.2 compatibility issue. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants