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'); – Hamendra Sunthwal Dec 8 '20 at 4:41

added memory_limit=2048m

error resolved.

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.