Class Magento\Authorization\Model\Acl\Role\GroupFactory does not exist magento2

Getting error Class Magento\Authorization\Model\Acl\Role\GroupFactory does not exist

magento 2 is quite complex to understand. We frequently get this error while developing store. Here is solution to fix this error.

1) go to var folder and find generation. now remove folder.

2) Now run below code using command line

php bin/magento setup:di:compile

It will automatically create all folder in the generation folder.

3) Then clear cache using below code:

php bin/magento cache:flush

Now, Run your store it will run without error.

Tags: Magento2,

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *