Please explain me how you installed the current version.
Was it an upgrade from an older version or a fresh installation?
-
-
Got it! Here the steps to reproduce the issue:
- Install 1.0.0 plugin version
- Run 'perl /var/www/imscp/engine/setup/imscp-setup -d' and complete the setup process
- Deactivate the plugin
- Uninstall the plugin and you should get the error -
-
Why do you run the setup?
You have to install the plugin with the panel itself. Then the plugin will add the permissions which are now not available. -
I run the setup to update PMA each time a new version is available. Maybe it is better to disable all plugins before running any update to i-MSCP.
-
-
-
Your plugin grants some permissions itself to the roundcube_user SQL user which is created by the roundcube package provided by i-MSCP. The problem is that when i-MSCP is updated or reconfigured, the roundcube_user SQL user is reseted (removed and recreated). This is the the same thing for all SQL users which are created by the i-MSCP packages. Thus, this involve the following:
- If an user installs your plugin and then update or reconfigures i-MSCP, the password changer plugin will no longer work ( no write permissions on the mail_users table).
- If an user installs your plugin, update/reconfigure i-MSCP and then, try to uninstall your plugin, an error ( such as the one posted by redcloud ) will be raised because the permissions doesn't exists anymore.
It's an implementation problem in your plugin. I'll fix that -
-