Home » Magento16 February 2010

Magento: Access denied in admin of custom module

I was building a custom module in Magento. I had created a system.xml file for storing configuration data from admin. From the below system.xml file, you can see that I have created a section named ‘My Module Name‘ which can be accessed from Admin –> System –> Configuration.

In the file below, I have just displayed the section and groups name. I have omitted others fields with dots, as they are not necessary here.

Now, when I try to access the ‘My Module Name‘ tab present in Admin –> System –> Configuration, I get the ‘Access Denied‘ Error.

I searched the internet about this problem. In the magentocommerce forum, people suggested to log out and relogin. But it didn’t slove my problem.

Inchoo suggested to edit administrator roles. But, it didn’t solve either.

Then I tried Activecodeonline’s solution. It suggested me to set some nodes in config.xml file of my module. I also think that it’s XML related problem. But this solution didn’t solve my problem. The ‘Access Denied‘ error still exists.

Finally, Activecodeonline was very useful to me ;). Actually, I had 2 groups in my system.xml file (see above xml). Hence, I need to add both group names as children in config.xml file of my module.

Regarding my system.xml file, the following XML is to be added in the config.xml file.

Here is my config.xml file which solved my problem. Unnecessary parts for here are removed with dots (…) :)

Hope this helps. Thanks.


Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Kamil

    Thanks for the tip!
    Link to Activecodeonline is broken (actually it’s http://ajzele.net/access-denied-magento-module-error)

  • Thanh tung

    actual exactly error and fix. thank you.

  • Tore

    I create a new tab and a new set for a payment module, but if I set this module as active it is not showing in checkout payments methods. When I put this module in payment section it is showing in the checkout payments methods, What to add to view this payment module when I put it in a custom section? Thanks in advance and sorry for my bed english.

  • Is this possibly related to the issue where the entire Configuration Page (except the Current Configuration Scope field and Manage Stores link) displays blank and selecting Default Store View results in an Access Denied message?  My URL turns into this when I select Default Store view:


    Finding anything useful on this has been a major PITA.  I would greatly appreciate any insight you may have into this matter.

  • Neha C


    I still got same message.