0

i'm unable to compile in magento2 if i run the Compile command always give the result like below

[dsdfsd@srv2 www]$ php bin/magento setup:di:compile
Compilation was started.
Proxies code generation... 0/7 [>---------------------------]   0% < 1 
sec 52.0 MiB
[dsdfsd@srv2 www]$ 

Struck in Proxies code Generation. Anyone please help me solve this... thanks in Advance

3
  • Try to clean without .htaccess the content of var/generated or generated
    – PЯINCƎ
    Oct 15, 2018 at 15:29
  • sorry i can't understand.. clean without .htaccess means?
    – Ask Xah
    Oct 15, 2018 at 15:38
  • In var/generated folder you find some files and an .htaccess so remove all the files inside var/generated without the .htaccess
    – PЯINCƎ
    Oct 16, 2018 at 8:07

1 Answer 1

0

Check any third-party or custom extensions that you have added to ensure that there are no errors in etc/di.xml.

Delete the contents of the generated/* folder.

Delete the contents of the var/di/* folder.

Delete var/cache/*

Check to see if it's working after all of the above: php bin/magento setup:di:compile

1
  • i had tried this... but still compilation not occurs
    – Ask Xah
    Oct 15, 2018 at 15:31

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.