Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '15 at 22:56
up vote 7 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.