I followed below steps: Part 1:

php bin/magento deploy:mode:set developer
php bin/magento cache:disable
php bin/magento maintenance:enable
composer require magento/product-community-edition 2.4.1 --no-update
composer update

After composer update, got error messageenter image description here

I added memory limit=-1 in php.ini file.

Please advise.

  • May be you can try ini_set('memory_limit', '80M'); Dec 8, 2020 at 4:41

1 Answer 1


added memory_limit=2048m

error resolved.

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.