while creating admin menu i am getting this error . attribute 'resource': [facet 'pattern'] The value 'M_Again::menucontroller' is not accepted by the pattern.


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
            <resource id="Magento_Backend::admin">
                <resource id="M_Again::menucontroller" title="magain" translate="title" sortOrder="900"/>


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
        <add id="M_Again::again" title="magain" module="M_Again" translate="title" resource="M_Again::menucontroller" sortOrder="100" action="magain" />

The resource id given in acl.xml is wrong i think explain please what it should be . thanks

  • please tell me what your module name and vendor name of this module? – Amit Bera Sep 17 '18 at 18:02
  • vendor name M and module name Again... so module name becomes M_Again – Flutterer Sep 17 '18 at 18:05
  • Please changes to M_Again::menucontroller to M_Again::menu_again on both two files and clear the session and flush the cache and see what happen? – Amit Bera Sep 17 '18 at 18:06
  • still same issue ... – Flutterer Sep 17 '18 at 18:13
  • I guess that you have issue with vendor Name. Change to other name – Amit Bera Sep 17 '18 at 18:19

facet mean short and as per as your comment your module is M.

You have to changes to it. Then you have to change to other respective files.

  • yes i have changed the module name from M to something else and it is working . thanks amit bera – Flutterer Sep 18 '18 at 4:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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