Hi - I'm trying to update a Magento 2.4.1 site to 2.44 so that I can install the CVE-2024-34102 patch
I'm hitting some errors when I run composer update -w after I run composer require-commerce magento/product-community-edition 2.4.4 --no-update
These are:
Problem 1 - Root composer.json requires aheadworks/module-affiliate ^1.2, found aheadworks/module-affiliate[1.2.4] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 2 - Root composer.json requires magento/product-community-edition 2.4.4 -> satisfiable by magento/product-community-edition[2.4.4]. - magento/product-community-edition 2.4.4 requires guzzlehttp/guzzle ^7.3.0 -> found guzzlehttp/guzzle[7.3.0, ..., 7.8.1] but it conflicts with your root composer.json require (^6.5).
Problem 3 - Root composer.json requires magento/magento-coding-standard ~1.0.0 -> satisfiable by magento/magento-coding-standard[1.0.0, 1.0.1, 1.0.2]. - magento/magento-coding-standard[1.0.0, ..., 1.0.2] require squizlabs/php_codesniffer ~3.3.0 -> found squizlabs/php_codesniffer[3.3.0, 3.3.1, 3.3.2] but it conflicts with your root composer.json require (~3.6.0).
Problem 4 - magento/magento2-functional-testing-framework[3.7.0, ..., 3.12.0] require guzzlehttp/guzzle ^7.3.0 -> found guzzlehttp/guzzle[7.3.0, ..., 7.8.1] but it conflicts with your root composer.json require (^6.5). - Root composer.json requires magento/magento2-functional-testing-framework ^3.7 -> satisfiable by magento/magento2-functional-testing-framework[3.7.0, ..., 3.12.0].
Any ideas / hacks about how to resolve these errors
For problems 2-4: Update your composer.json' require versions for those.
For 1: Check with AheadWorks from whom you bought that module. Maybe you have to extend your licence to be able to fetch the upgraded version of the module that works with 2.4.4.
BTW. If you're already working on an upgrade, why not upgrade all the way to the latest version of Magento?
Hey,
Remove : aheadworks/module-affiliate and then execute composer require-commerce magento/product-community-edition 2.4.4 --no-update after successfully upgrading then execute " composer require aheadworks/module-affiliate --ignore-platform-reqs
Thank You!
Hello @jongreydav8ea3,
To resolve the errors you're encountering when trying to update Magento from 2.4.1 to 2.4.4, there are a few steps and workarounds that may help address the dependency conflicts in your composer.json.
Steps to resolve:
composer update --ignore-platform-reqs aheadworks/module-affiliate
Conflict with guzzlehttp/guzzle:
"guzzlehttp/guzzle": "^7.3"
After updating the requirement, run:
composer update guzzlehttp/guzzle --with-dependencies
PHP_CodeSniffer version conflict:
"squizlabs/php_codesniffer": "~3.3.0"
Magento Functional Testing Framework (MFTF) conflict:
As a temporary workaround, you can try running the composer update with --ignore-platform-reqs to skip the platform checks:
composer update --ignore-platform-reqs
After following these steps, you should be able to update Magento and resolve the dependency conflicts.
If the issue will be resolved, Click Kudos & Accept as a Solution.