1

Ran into this error when running setup:di:compile after composer install

 [RuntimeException]                                                                                                                             
  Source class "\Zend\Mvc\Controller\LazyControllerAbstract" for "Zend\Mvc\Controller\LazyControllerAbstractFactory" generation does not exist.

Any ideas how to fix or debug this? Thanks!

2 Answers 2

1

Magento official document has written the good guide on this, do check it out! I hope it will be helpful for you.

That's the error cause mentioned by Magento in their guide:

"The error occurs because the setup:di:compile command tries to access the var/di and var/generation directories, which are read-only.

It is not a defect but an expected behavior on cloud environments. You should not run setup:di:compile manually since this command is being executed during the deployment process. The Magento code cannot be changed on the fly (because it is located in the read-only directories), so there is no need to recompile var/di and var/generation: there is no difference with files generated during deployment."

For further read: https://support.magento.com/hc/en-us/articles/115002663433-Error-running-the-setup-di-compile-command-manually

2
0

Sounds like a module is extending the block incorrectly. Do you have anything custom you were working on in /code?

2
  • yeah there are a few custom modules, but i don't know how or where to start to debug this Mar 11, 2020 at 20:10
  • First run search thru the code in app/code for LazyControllerAbstract keyword
    – BartZalas
    Mar 12, 2020 at 8:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.