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
Delete
var/cache
,var/page_cache
,var/di
,generated/
directories and runsetup:upgrade
command.This will resolve the issue.