I got strange error while running command “php bin/magento setup:upgrade”.
Error:
We can’t find the role for the user you wanted…
Unable to complete my all command process.
Please help.
I got strange error while running command “php bin/magento setup:upgrade”.
Error:
We can’t find the role for the user you wanted…
Unable to complete my all command process.
Please help.
2
Answers
Solution:
Please go to file:
vendor/magento/module-authorization/Model/Acl/AclRetriever.php at line# 85 and edit below code into edit one:
Original Code:
Edit Code:
Now, please run setup:upgrade and rest commands.
Important:
Once success, please revert back the file.
Thanks,
in my case it was caused by Shopial_Facebook (which I do not need). I ran
cleared cache and the error was gone. I hope it helps.