I am running compile command

php bin/magento setup:di:compile

Compilation was started. Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 54.0 MiB You have new mail in /var/mail/root

Compilation stop in 1/7 without displaying any error.

May i know why its breaking compilation ?

  • Check the memory limit, script execution time of your server. Also check for any malformed xml files in any of your newly installed modules.
    – MGento
    Aug 30 '18 at 4:38
  • which PHP version to use? Aug 30 '18 at 5:38
  • 1
    use php bin/magento setup:di:compile -vvv to display error if any. Aug 30 '18 at 5:46
  • @Ansar Husain did you find any solution? How did you solve this? Nov 14 '19 at 9:00

Could be memory-related?

Try increasing the memory limit:

php -dmemory_limit=5G bin/magento setup:di:compile

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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