skip to Main Content

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 MagentoFrameworkAclCacheInterface does not exist

[ReflectionException] Class MagentoFrameworkAclCacheInterface does not exist

3

Answers


  1. 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

    Login or Signup to reply.
  2. It looks like permission issue, Please set proper file permission

    Run Below command to set proper file permission :

    find . -type f -exec chmod 644 {} ;
    find . -type d -exec chmod 755 {} ;
    find var pub/static pub/media app/etc -type f -exec chmod g+w {} ;
    find var pub/static pub/media app/etc -type d -exec chmod g+ws {} ;
    chmod u+x bin/magento
    

    For local development set pub and var to 775 or 777

    Login or Signup to reply.
  3. The class MagentoFrameworkAclCacheInterface does not current exist since Magento 2.2, replace it with MagentoFrameworkAclDataCacheInterface

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search