MaGeFH
Active member
- Affected version
- Release Candidate 3
I noticed that when uninstalling an AddOn the behavior of XF2 differs between Admin CP and CLI.
When uninstalling via Backend, the class extensions seem to be valid until the very last step has passed. In CLI mode this is not the case and you will be given something like "The site is currently being upgraded. Please check back later." when trying to access methods that are available via your class extensions.
To easily reproduce this, I have created a small "testme" addon. This logs into the Server error logs (
When uninstalling via Backend, the class extensions seem to be valid until the very last step has passed. In CLI mode this is not the case and you will be given something like "The site is currently being upgraded. Please check back later." when trying to access methods that are available via your class extensions.
To easily reproduce this, I have created a small "testme" addon. This logs into the Server error logs (
admin.php?logs/server-errors/
) during installation and uninstallation. The CLI also does flag hasPendingUpgrade
to true, so I needed to set \XF::app()->error()->setIgnorePendingUpgrade(true);
to log to the server error log during CLI install/uninstall.