cancel
Showing results for 
Search instead for 
Did you mean: 

Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Hi everyone, I've been using magento2 for a few months but I'm having trouble understanding how to update.
Could anyone help me understand what this error means and how to fix it? BUT Upgrade should not install all updates automatically?

 

php bin/magento maintenance:enable

composer require magento/product-community-edition 2.4.6 --no-update
composer update --ignore-platform-reqs


>>>>

Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
In Laminas\DependencyPlugin\DependencyRewriterV2:nPrePoolCreate
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires magento/product-community-edition 2.4.6 -> satisfiable by magento/product-community-edition[2.4.6].
- magento/product-community-edition 2.4.6 requires colinmollenhour/credis ^1.13 -> found colinmollenhour/credis[v1.13.0, v1.13.1, v1.14.0] but it conflicts with your root composer.json require (1.12.1).


>>>>

Thansk Alessandro

12 REPLIES 12

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Hi all, could someone give me some advice to upgrade

 

Thanks Alessandro 

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

The error message you received indicates that there is a conflict between the required version of the colinmollenhour/credis package specified in your magento/product-community-edition 2.4.6 dependency and the version required by your root composer.json file.

To resolve this conflict, you can try updating the version of colinmollenhour/credis in your root composer.json file to match the required version specified in your magento/product-community-edition 2.4.6 dependency.

 

Once you have resolved the conflict, you can run composer update command again to update your Magento instance to version 2.4.6.

 

Regarding your question about whether upgrading Magento should install all updates automatically, the answer is generally YES. When you upgrade Magento to a new version, it will usually include all updates and improvements from previous versions. However, it's always a good idea to check the release notes and documentation for the new version to understand any potential changes or compatibility issues that may arise.

 

If you like and accept the solution, hit Kudos.

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Hello @aghezzisec1096 

 

There is an easy solution to fix this error “your requirements could not be resolved to an installable set of packages” in Magento 2. You just need to run the following commands:

 

  • composer install --ignore-platform-reqs

     or 

  • composer update --ignore-platform-reqs

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

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Hello @johnwebdes40a5 

 

after these comand 

 

php bin/magento maintenance:enable

composer require magento/product-community-edition 2.4.6 --no-update

composer update --ignore-platform-reqs

 

i have  this error

 

composer update --ignore-platform-reqs


Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
In Laminas\DependencyPlugin\DependencyRewriterV2:Smiley SurprisednPrePoolCreate
Updating dependencies


Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires magento/product-community-edition 2.4.6 -> satisfiable by magento/product-community-edition[2.4.6].
- magento/product-community-edition 2.4.6 requires colinmollenhour/credis ^1.13 -> found colinmollenhour/credis[v1.13.0, v1.13.1, v1.14.0] but it conflicts with your root composer.json require (1.12.1).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

 

can you advise me ?

 

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

hi @qamarbuttx4090 

 

If I understand correctly after this command

 

php bin/magento maintenance:enable

composer require magento/product-community-edition 2.4.6 --no-update

 

We advise you to manually edit the composer.json file with the right versions ?

 

Thanks Alessandro 

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Hello @aghezzisec1096 

 

Please follow the steps below:

  1. Please delete composer.lock file (Please make sure to take a backup beforehand).
  2. Please try the following command:
    composer require magento/product-community-edition 2.4.6 -W
  3. Composer Update:
    1. Run composer update
  4. Please update the database schema and data. bin/magento setup:upgrade
  5. Please disable Magento maintenance mode. bin/magento maintenance:disable
  6. Restart Varnish. (Optional) Restart Varnish If you use it for page caching: service varnish restart

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

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

I am trying to upgrade from Magento 2.4.2 to Magento 2.4.6, I did try several solutions including your suggested one but still stuck on the same error:
php bin/magento setup:upgrade
PHP Fatal error: Class Magento\Setup\Mvc\Bootstrap\InitParamListener contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laminas\ServiceManager\Factory\FactoryInterface::__invoke) in httpdocs/setup/src/Magento/Setup/Mvc/Bootstrap/InitParamListener.php on line 32
Im running PHP 8.2.9 on plesk server.

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Magento 2.4.6 needs newer colinmollenhour/credis than locked in composer.json
First update colinmollenhour/credis dependency
Update it and dependencies with composer command
Then upgrade Magento with composer
Read errors to find dependency conflicts
Update dependencies one by one before upgrading

Re: Error Upgrade Magento from 2.4.4-p2 to 2.4.6

Open your composer.json file, find a line with colinmollenhour/credis and put * in place of a version, like this:

 

"colinmollenhour/credis" : "*"