Magento 2.3.0 Upgrade Error – PHP Requirement Issue

magento2.3magento2.3.0php-7upgrade

I'm upgrading Magento from 2.2.7 to 2.3.0 from composer.
Running in sequence

php bin/magento maintenance:enable 
composer require magento/product-community-edition 2.3.0 --no-update 
composer update 

In the console I read several lines of error with sentences like

magento/framework 100.1.15 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.23) does not satisfy that requirement.

Can only install one of: magento/framework[102.0.0, 101.0.0].

I'm using php v7.1.23 and https://magento.com/tech-resources/download don't say nothing about issue on v 7.1.x.

So i don't understand why the upgrade isn't compatible.

How does this problem happen? Do I need to upgrade to php v7.2?

Best Answer

To resolve I manually updated the packages that gave me error one by one. Every update I did rerun composer:update. In the end all the requirements were met and the update was successful. The PHP version was correct.


Now for the upgrade to version 2.3.2 I found the same problem. I found incompatible packages in composer.json and removed them. Then I discovered the existence of this parameter that was useful to me: composer require magento/product-community-edition 2.3.2 --update-with-all-dependencies.

Related Topic