Zend_Acl_Exception: Resource 'admin/page_cache' not found #2705
-
Recently, I did a couple of updates from ver 1.9.4.3 (OM 19.4.0) and ver 1.9.4.4 (OM 19.4.1) to OM 20.0.16. In both versions, there were a bunch of errors in
The trace:
There are more than 30 admin roles and lots of backend users in those upgraded instances. When I reverted the code base back to ver19 with git, the errors disappeared. Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Those are old ACL rules from some original Magento modules that were removed in OM, such as Connect and PageCache. E.g: https://github.com/OpenMage/magento-mirror/blob/98da842ef7aa59b8b8fee642de8b0b6deec55c31/app/code/core/Mage/Connect/etc/adminhtml.xml#L32 You should be able to just clear them from the DB, or from the admin interface before performing the upgrade on the live instances. |
Beta Was this translation helpful? Give feedback.
-
To remove the deprecated rules: DELETE FROM admin_rule
WHERE `resource_id` IN (
'admin/page_cache',
'admin/system/config/moneybookers',
'admin/system/extensions',
'admin/system/extensions/local',
'admin/system/extensions/custom',
'admin/system/tools/backup',
'admin/system/tools/backup/rollback',
'admin/system/tools/compiler',
'admin/xmlconnect',
'admin/xmlconnect/mobile',
'admin/xmlconnect/admin_connect',
'admin/xmlconnect/queue',
'admin/xmlconnect/history',
'admin/xmlconnect/templates'
) |
Beta Was this translation helpful? Give feedback.
Those are old ACL rules from some original Magento modules that were removed in OM, such as Connect and PageCache. E.g: https://github.com/OpenMage/magento-mirror/blob/98da842ef7aa59b8b8fee642de8b0b6deec55c31/app/code/core/Mage/Connect/etc/adminhtml.xml#L32
You should be able to just clear them from the DB, or from the admin interface before performing the upgrade on the live instances.