Issue
Every time I try to make a compilation it shows me this error and I do not know how to solve it.
Any ideas?
php bin/magento setup:di:compile
Compilation was started. Area configuration aggregation... 5/7 [====================>-------] 71% 28 secs 252.0 MiB
[ReflectionException] Class Magento\Framework\Acl\CacheInterface does not exist
[ReflectionException] Class Magento\Framework\Acl\CacheInterface does not exist
Solution
Please provide 777 permission on generated folder on the root of magento installation.Please use commands given below before compilation:-
- php bin/magento cache:flush
- php bin/magento cache:clean
- sudo rm -rf generated/*
- sudo chmod -R 777 generated/
- php bin/magento setup:di:compile
Also if there is permissions issue then you can use sudo before commands
Answered By - Andrew Smith Answer Checked By - Robin (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.