PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, August 22, 2022

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

 August 22, 2022     magento, magento2, magento2.2     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing