1

Below is my config.xml

<?xml version="1.0"?>
<config>
    <modules>
       <NameSpace_ModuleName>
          <version>1.0.0</version>
       </NameSpace_ModuleName>
    </modules>
</config>

Below is my adminhtml.xml

<?xml version="1.0"?>
<config>
    <acl>
    <resources>
        <all>
            <title>Allow Everything</title>
        </all>
        <admin>
            <children>
                <system>
                    <children>
                        <config>
                            <children>
                                <mymodulename>
                                    <title>Customer Config</title>
                                    <sort_order>80</sort_order>
                                </mymodulename>
                            </children>
                        </config>
                    </children>
                </system>
            </children>
        </admin>
    </resources>
</acl>
</config>

Below is my system.xml

<?xml version="1.0"?>
<config>
    <sections>
        <mymodule translate="label" module="mymodule">
            <class>separator-top</class>
            <label>Customer Config</label>
            <tab>customer</tab>
            <sort_order>100</sort_order>
            <show_in_default>1</show_in_default>
            <show_in_website>1</show_in_website>
            <show_in_store>1</show_in_store>
            <groups>
                <general translate="label" module="mymodule">
                    <label>Customer Configuration</label>
                    <sort_order>20</sort_order>
                    <show_in_default>1</show_in_default>
            <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <expanded>1</expanded>
                    <fields>
                        <active translate="label">
                            <label>Enable My Module</label>
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>
                            <sort_order>1</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </active>
                    </fields>
                </general>
            </groups>
        </mymodule >
    </sections>
</config>

I can see the section under Customer Tab, but when I click on it, it gives me 404 Not found error

My system.log is empty and shows nothing.

Please help to resolve.

7
  • 2
    Did you logout and relogin in the backend?
    – Marius
    Aug 5, 2014 at 12:25
  • Yes. Cleared cache too. When I put if(!$xml){ Mage::log($string); } in my Config.php (located at /lib/Varien/Simplexml/Config.php) and line 510, it prints 2014-08-05T12:25:26+00:00 DEBUG (7): <config/> in system.log
    – Jordan
    Aug 5, 2014 at 12:28
  • 1
    Did you add the ACL for your section in adminhtml.xml or config.xml?
    – Marius
    Aug 5, 2014 at 12:31
  • Yes, pls check the updated question.
    – Jordan
    Aug 5, 2014 at 12:35
  • Do you check with an administrator account? Check the user roles in the admin and check if the new right is activated for your user roole.
    – Simon
    Aug 5, 2014 at 12:38

1 Answer 1

1

It looks like your adminhtml.xml might be missing a couple tags. When adding new configuration areas, it should look like this:

<?xml version="1.0"?>
<config>
    <acl>
        <resources>
            <admin>
                <children>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <mymodule>
                                        <title>Config Tag Name Goes Here</title>
                                    </mymodule>
                                </children>
                            </config>
                        </children>
                    </system>
                </children>
            </admin>
        </resources>
    </acl>
</config>

I think you're missing the system > children > config > children part. Try adding that and it should work. (You may need to log out and log back in).

5
  • Did you see my updated adminhtml.xml ?
    – Jordan
    Aug 5, 2014 at 12:47
  • No, I didn't. You're getting closer! It looks like you just need to rename <section_name> to <mymodule> (it should match what you have in system.xml under config > sections Aug 5, 2014 at 12:49
  • yes, its the same. Section name is same as module name.
    – Jordan
    Aug 5, 2014 at 12:50
  • Your recent edit has two <mymodulename>s. The second one should be a closing tag: </mymodulename>. Does that fix things for you? Aug 5, 2014 at 12:51
  • Yes, it was a typo. Still same error
    – Jordan
    Aug 5, 2014 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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