Sign up ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

Each time I install new extension, and open the admin - system - configuration - module options I get 404 error.

Logging out and in helps, but how to avoid this? The issue has something to do with the admin permissions cache, but how to refresh it programmatically, say, from the install script?

Any ideas?

share|improve this question
Related: – fschmengler Feb 2 at 22:56

1 Answer 1

up vote 6 down vote accepted

This behavior occurs because Magento caches the ACL in the admin user's session. Here's the relevant line from Mage_Admin_Model_Session::login():


You can have the ACL cache reloaded ("refreshed") by using the following code:

$session = Mage::getSingleton('admin/session');
share|improve this answer
Thanks! Will try and accept the answer. – Amasty Aug 6 '14 at 21:04
Good answer @Colin O'Dell – Amit Bera Aug 7 '14 at 12:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.