cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade to 2.4.4 PHP 8.1 error

Upgrade to 2.4.4 PHP 8.1 error

Hi,

I am currently upgrading our instance of Adobe Commerce from 2.4.2 to 2.4.4. I ran all the instructed steps from this documentation during my upgrade process (https://devdocs.magento.com/cloud/project/project-upgrade.html). I reached the part of the instructions to push my local changes to the remote server (currently on Magento Cloud). Upon doing so, the deployment stopped with multiple errors. All of them were of the same type of error:

 
    W:   Problem 15
    W:     - magento/framework is locked to version 103.0.4-beta1 and an update of this package was not requested.
    W:     - magento/framework 103.0.4-beta1 requires php ~7.3.0||~7.4.0 -> your php version (8.1.6RC1) does not satisfy that requirement.

 

I've seen this error on other posts but could not find a solution for it.

 

Please advise.

1 REPLY 1

Re: Upgrade to 2.4.4 PHP 8.1 error

Hi @pj860a 

 

1) First, you need to set the correct php version as per your Magento version.

  • Warning: If your test environment with an older php version is on the same server, your live site can get down due to PHP version compatibility.

2) Second, please update Composer to the latest version before any other action!

  • composer self-update
  • composer update

3) Then please try the following commands:

  • composer require magento/composer-root-update-plugin=~1.0 --no-update
  • composer update
  • cp composer.json composer.json.bak
  • composer remove magento/product-community-edition --no-update
  • composer require magento/product-community-edition=2.4.4 --no-update
  • composer update

 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9