skip to Main Content

When logging into the admin section of my Magento 2.2.2 installation I’m getting the error:

“”0″:”Could not create an acl object: Role ‘5’ not found”,”1″:”#0 /var/www/magento/generated/code/Magento/Framework/Acl/Builder/Proxy.php(95): MagentoFrameworkAclBuilder->getAcl()”

I get the same error if I run “bin/magento setup:upgrade” from cli.

The Role ‘5’ portion of the error message I think refers to a role_id in the authorization_role table. There is a row in the table with that role_id so I’m not sure what’s triggering the error.

How do I debug and resolve this?

2

Answers


  1. Delete var/cache, var/page_cache, var/di, generated/ directories and run setup:upgrade command.

    This will resolve the issue.

    Login or Signup to reply.
  2. Flush Magento Cache

    • Open Terminal
    • Go to your Magento root directory

      cd /path/to/your/magento/folder
      
    • Run the following command:

      php bin/magento cache:flush
      
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search