Is the admin_rule table cleaned up after extension uninstalling? #3381
-
Debugging another problem, I noticed today, that my
This module that is mentioned in the error message I have uninstalled a long time ago and by 'uninstall' I mean, I just stopped deploying it with the rest of the application. Is there a mechanism in place to clean those leftover entries in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We discussed a similar issue here #3175. These are the admin_role, admin_rule and admin_user tables from an (OpenMage + Magento Sample Data) installation. You could check their content, and if everything is fine, look for the problem elsewhere. As far as uninstalling an extension is concerned, it is a complex process. If the developer has provided instructions or a script, it's fine, but I found that everything is not always deleted and orphaned files and records remain in the database. I have my own rule to analyze an extension in a test environment before using it. The first time I analyze the files and see where they are copied, then I look in the files that add records to the database. I move on to installing the extension and running it again, then I compare the database before and after installation (sometimes I need to compare the file system when uploading files). That's the only way I have control over all the data and can proceed to a complete uninstallation later. Answering to your question, there is no "mechanism" to clean up orphan records from the database (there is an extension to clean orphan attribute values). You have to do the whole process manually, only after analyzing the extension as I showed above. |
Beta Was this translation helpful? Give feedback.
-
Somehow a weird cache problem seems to have caused these errors: #3383 Now those errors seem to be gone. But it is good to know, that I have to cleanup myself after modules (most of the time) :D |
Beta Was this translation helpful? Give feedback.
We discussed a similar issue here #3175.
These are the admin_role, admin_rule and admin_user tables from an (OpenMage + Magento Sample Data) installation. You could check their content, and if everything is fine, look for the problem elsewhere.
As far as uninstalling an extension is concerned, it is a complex process. If the developer has provided instructions or a script, it's fine, but I found that everything is not always deleted and orphaned files and records remain in the database.
I have my own rule to analyze an extension in a test environment before using it. The first time I analyze the files and see where they are copied, then I look in the files that add records to the datab…