-
Notifications
You must be signed in to change notification settings - Fork 69
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
[Extensions] Uninstalling a non-existing module does not work anymore #1278
Comments
This has always been the case. Since the module is responsible to delete it's tables and so on, the module is necessary to be present. The only way to do this would be to have a huge registry (which modules would have to comply with in the first place) so Zikula has the means to clean up the module's database entries. If you remove the files from an installed module the correct response is for Zikula to show "FILES MISSING" in the Extensions module. |
No, IIRC it was possible to "uninstall" a missing module so it disappeard out of the modules table. |
@cmfcmf is right. I can also remember, that it was possible. |
@cmfcmf yes, but that behaviour isnt right. You cannot expect to just clear it from the list and expect things to work ok. All manner of things can go wrong. |
Then we shouldn't show an uninstall button for missing modules. |
@cmfcmf I agree. |
What the uninstall used to do was to simply cleanup the modules table but leave anything else. It would be best if we simply flagged these modules with a "files missing" label so that the site administrator can see the issue and take some suitable action. -Mark |
They are flagged already. |
A related issue is that removing a new style 1.3.6 module blows up the site with the following stack dump. In this example I simply removed the acme-example module files and refreshed the page.
-Mark |
This issue may be resolved. I just tested removing the acme-example module both before and after it was installed. in both cases, the behavior seemed appropriate with no exceptions or stack traces. |
shall we close this? Anyone else want to test anything? @cmfcmf - I see your original post was with the errors module - /system modules probably should send up exceptions when absent - since they are all required and they shouldn't be uninstallable anyway. right? |
No, this can't be closed. There shouldn't be an uninstall / remove icon if files are missing. |
This PR was merged into zikula:1.3 branch. Discussion ---------- Do not show uninstall icon if files are missing, closes #1278. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | --- | Fixed tickets | #1278 | Refs tickets | --- | License | MIT | Doc PR | --- Commits ------- 85d6478 Do not show uninstall icon if files are missing, closes #1278. cmfcmf
When a module is deleted from filesystem, it can't be uninstalled anymore.
(
Class ZikulaErrorsModule_Installer does not exist
)The text was updated successfully, but these errors were encountered: