skip to Main Content

Anybody experience with this error? I see nothing in the logs that helps me.

Exception #0 (LogicException): Could not create an acl object: Invalid
Document Element ‘resource’: The attribute ‘title’ is required but
missing. Line: 5

0 /generated/code/Magento/Framework/Acl/Builder/Proxy.php(95): MagentoFrameworkAclBuilder->getAcl()

3

Answers


  1. I have also experienced this issue some time ago. Actually, the problem is one of your custom or third party module contains <resource> tag in acl.xml in etc folder file and the title attribute is missing over there, which is the cause of this exception. Therefore, I would suggest you to check acl.xml files and if title attribute is missing in any of your module then add a title to <resource> tag something like this:

    File etc/acl.xml in one of your module:

    <resource id="Custom_Module::config" title="Module Title" />
    

    You can also check this Magento 2.2.0 Invalid Document Element ‘resource’: The attribute ‘title’ is required but missing from where I found the solution to my problem.

    Login or Signup to reply.
  2. In Addition to verifying the title against the most inner resource tag, also verify that you have not added extra id="Custome_Module::config" in any of your acl.xml or some spelling mistake etc.

    Login or Signup to reply.
  3. I had the same issue because I had disabled all MSI modules.
    Try to enable them and check if this fixed your issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search