By tneo on
composer update "drupal/core-*" --with-all-dependencies Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - drupal/core-recommended[9.4.0, ..., 9.4.9] require laminas/laminas-feed ~2.17.0 -> satisfiable by laminas/laminas-feed[2.17.0]. - laminas/laminas-feed[2.15.0, ..., 2.17.0] require php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement. - Root composer.json requires drupal/core-recommended ^9.4 -> satisfiable by drupal/core-recommended[9.4.0, ..., 9.4.9].
The above message is thrown when I execute the composer update command. I have no idea how I can resolve that. I edited the composer.json files for all the laminas folders, though it does not have the desired effect.
How can I solve this to resume updating?
Comments
Switch to PHP 8.1. PHP 8.2 is
Switch to PHP 8.1. PHP 8.2 is not yet current.
Contact me to contract me for D7 -> D10/11 migrations.
Thanks!
Aha. Okay. Downgraded to 8.1.13 and issue is resolved. :-)
I changed the PHP version in
I changed the PHP version in webhosting settings to 8.1 but it didn't help. Composer says that the PHP version is incorrect.
Based on the Composer Problem message...
...your php version is 8.2.0. You need to check your hosting environment to see why your change to 8.1 is not live.
Requirements page needs updating
I'm getting the same message when trying to upgrade from D9.5 on PHP 8.2.
Does this mean that this page needs to be corrected WRT PHP 8.2: PHP requirements?
I had to upgrade from PHP 7 to PHP 8 in order to upgrade Drupal from 8 to 9.
I upgraded directly to PHP 8.2 because the main goal is to upgrade to D10 and the requirements state PHP 8.2 is supported.
I was able to upgrade to D9.5 on PHP 8.2, but now I can't upgrade from D9.5 to D10 on the same PHP version?
Does this mean that this page
No. The original poster was getting the message from the laminas/laminas-feed library, not Drupal core. Drupal core is PHP 8.2 compatible, but that does not mean all modules are.
Contact me to contract me for D7 -> D10/11 migrations.
I ran into this while trying
I ran into this while trying to do some 9.x core development with PHP 8.2
I got around it by following this tweet:
https://twitter.com/seldaek/status/1577349406382342144
Add this flag to the problem.
Example:
Hope that helps others too.
--ignore-platform-req works
I can confirm that adding
at the end of composer require command has fixed the error and I was able to install a lot of modules for D9.
thank you
joelpittet for the suggestion.
Yes it does!
Thank you!
It helped, Thank you.
It helped, Thank you.
Thank you it helped a lot.
Thank you, it helped a lot.
Upgrade Status module requires this library not Drupal core.
I got the same error and it was blocking deployment. Finally figured out that it was not required by Drupal core but by the upgrade status module. Removing the upgrade status module solved the issue. Hope this helps someone else.
Thank you!
@binnythomas, good catch. Was my issue too.
@binnythomas, good catch. Was
@binnythomas, good catch. Was also my issue too.