I repeatedly getting the following error while I try to execute

php bin/magento setup:upgrade


php -d set_time_limit=3600 -d memory_limit=1024M bin/magento setup:di:compile

Please help.

enter image description here

I think di folder are generate at compile time inside var folder.

delete var/di and var/generation

delete pub/static/* keep .htaccess file only.

if di folder is not available first create di folder inside var folder.

Run command :

php bin/magento setup:di:compile

For Static content deploy quick solution add memory size in the command like:

php -dmemory_limit=6G bin/magento setup:static-content:deploy

change 6G to what you want

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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