Access denied in Magento admin

16 Comments 30th MAR 2009 | Posted by Ivan Weiler in Magento

Access denied in Magento admin

Some of you may encountered this problem. You install new Magento extension through downloader, try to access its configuration settings and Magento throws “Access denied” page at you. Although you’re administrator of the system.

access-denied-in-magento-admin-1

So what happened here? Magento just doesn’t have stored privileges for this new extension.

First just try to logout and login again. If that doesn’t work, you need to reset admin privileges.

Navigate to System->Permissions->Roles and click Administrators role.

access-denied-in-magento-admin-2

Check your Role Resources settings just in case, Resource Access dropdown should be already set to All for administrators.

access-denied-in-magento-admin-3

Without changing anything just click “Save Role” button, so that Magento re-saves all permissions.

You should be able to access your new extension now without problems.

If you like what you read, please share it.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Reddit
  • Technorati
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Netvibes
  • FriendFeed
  • NewsVine
  • Sphinn
  • Tumblr

There are 16 comments (Add Yours +)

  • Hi there,
    Good piece of advise. I talked to Yoav about this issue and they are aware of it. He advised that they will probably be fixing this shortly. However it can be fixed by writing some code in the setup script that runs when you first install the module.
    I don’t have example code at the moment but will be posting it shortly.
    Cheers
    Adam

  • Hey, thanks for the info. Example would be great!

  • I see this problem sometimes, when, my url expries due to inactivity and I click on / login / go to same url automaticall – the KEY seen in url does not exist.
    So, it gives out the message to me.

  • Great follow the instrutions now i cant even login to admin,

  • i then tryede ask for new password got it but still cant login

  • Logging out and back in worked for me. Thanks a lot.

  • What if you are locked out and the function “Permissions” is not shown anymore after succesfull login using admin login account?

    Thit happend to me after making a new Magento admin user and trying to restrict some of its rights.

  • Great, i have the same issue I can’t log back into admin, now what?

  • In older Magento versions you need to reset admin privileges sometimes. This was changed in 1.3.x versions where is enough to logout and login again if you have similar problems, assuming that it’s not the problem in the extension you’re trying to install.

    For those that aren’t careful when setting up permissions I think our new article may help :)

    http://inchoo.net/ecommerce/magento/locked-out-from-magento-admin/

  • @ivan Thank you for the reply however I am running version 1.4. What I did is made sure that admin role was set to ALL for permissions and it was but I hit save to make sure, when I did that I got Access Denied on the page, I then loged out and tryed to log back in with my admin info and got “Access Denied” not “Invalid Username or Password”. I then reset the password and still the same issue, I then opened the DB via phpmyadmin and looked at table admin_user to verify that my admin info is right and it was, my permissions are set as ALL in the DB so I don’t know why I can’t log back in. Any thoughts???

  • @chris please check admin_user,admin_role,admin_rule table.according to my perception you changed the permission that’s why you got “access denied” error.

  • AK,

    I’ve got the same problem as Chris. You said “please check admin_user,admin_role,admin_rule table.according to my perception you changed the permission that’s why you got “access denied” error.”.

    What exactly should I check in these tables? I tried to set privileges to “all” in “admin_rule” table, but it didn’t help.

    Thank you very much in advance.

  • @Nadya.try to installed new magento separately and match the value of existing database tables(admin_user,admin_role,admin_rule table) with your new database tables.and also clear your magento cache(public_html->Var->cache).hope it help

  • AK,

    I fixed the database. The problem was in admin_role table – I had to add additional role there, and change rule_id in admin_rule table in the original db.

    Thank you for advices,

    Nadya

  • Tarun V Patel Says

    Thanx Yaar… its too great…

  • Hi,

    i have installed EasyFlag extension and after this i got Access denied when im trying enable extension for store views via System > Configuration > Templates-Master > EasyFlags. re-save admin role and logging out after instalation doesnt work, still Access. any suggestion ?

Leave a Comment

Magento Design and Development | Magento SEO | iPhone Application Development Web Application Development with ZEND | WordPress Ecommerce | WordPress development
Sitemap

Inchoo - webappsolutions | 2009