Take the 2-minute tour ×
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

2 Answers 2

up vote 4 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():

$this->setAcl(Mage::getResourceModel('admin/acl')->loadAcl());

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

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

I am request to all please ignore my answer.....

Colin O'Dell,Answer is right...

It may permission for admin...

Goto admin Login as administrative >system>Permission>Role>Select role Administrators>click on save Role buttom Then logout from admin. enter image description here

If it not working then it should be acl in adminhtml.xml issue

Alan storm is greatly explain it configuration http://alanstorm.com/magento_acl_authentication

share|improve this answer

Your Answer

 
discard

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.