skip to Main Content

I spent 1 week trying to upgrade Magento from version 2.2 to 2.4.
In order to proceed I have downloaded and I am using composer 1.
My PHP version is 7.1 – Perfectly compatible with Magento 2.2.
With composer 1 I was able to get a "composer require" without errors.
I then launched the "composer update" command but it goes into error due to the lack of php 7.4 or higher.

Now: I could also update the php and finish the "composer update" but then the "magento/upgrade" will not work because it is the one of Magento 2.2 which only works with php 7.1

Do you have solutions?

I am aspects to upgrade Magento

2

Answers


  1. You have 2 solution:

    1, If you dont want to upgrade magento 2.2 to magento 2.4, you can remove php7.4 and use php7.1 again.

    2, Upgrade magento version to 2.4.x:

    • With magento <=2.4.3, you can use php7.4

    • With magetno >=2.4.4, you can use php8.1

    Step by step to upgrade magento version you can read it here Upgrade magento version

    Login or Signup to reply.
  2. For Magento 2.4.4, the minimum requirement of PHP version is 8.1 so you need to make sure to change the PHP version then run the composer require to upgrade.

    Check the official documentation: https://devdocs.magento.com/guides/v2.4/release-notes/release-notes-2-4-0-open-source.html

    https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-5.html

    For upgrade process:

    https://www.cloudways.com/blog/magento-2-4-upgrade/

    https://devdocs.magento.com/guides/v2.4/comp-mgr/cli/cli-upgrade.html

    Thanks

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search