Search code examples
magentomagento2magento2.2

When I make a compilation, I create an error in magento 2.2.3


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