0

I repeatedly getting the following error while I try to execute

php bin/magento setup:upgrade

or

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

Please help.

enter image description here

2 Answers 2

1

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

0

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 agree to our terms of service and acknowledge you have read our privacy policy.

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