Problem/Motivation
I am using PHP 8.2 in my local and when i am trying to install the module, i am geting the following error:
Problem 1
- geocoder-php/common-http[4.1.0, ..., 4.2.0] require php ^7.0 -> your php version (8.2.0) does not satisfy that requirement.
- geocoder-php/nominatim-provider[5.0.0, ..., 5.1.1] require php ^7.0 -> your php version (8.2.0) does not satisfy that requirement.
- geocoder-php/common-http 4.3.0 requires php ^7.2 -> your php version (8.2.0) does not satisfy that requirement.
- geocoder-php/nominatim-provider[5.2.0, ..., 5.3.0] require php ^7.2 -> your php version (8.2.0) does not satisfy that requirement.
- geocoder-php/common-http[4.4.0, ..., 4.5.0] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/cloud dev-6.x requires geocoder-php/nominatim-provider ^5 -> satisfiable by geocoder-php/nominatim-provider[5.0.0, ..., 5.7.0].
- drupal/cloud 6.x-dev is an alias of drupal/cloud dev-6.x and thus requires it to be installed too.
- geocoder-php/nominatim-provider[5.4.0, ..., 5.7.0] require geocoder-php/common-http ^4.1 -> satisfiable by geocoder-php/common-http[4.1.0, ..., 4.5.0].
- Root composer.json requires drupal/cloud 6.x-dev@dev -> satisfiable by drupal/cloud[6.x-dev (alias of dev-6.x)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
and if we downgrade the php, if there are other module's which is depends on > php 8.0 it won't work.
Steps to reproduce
Install the module on PHP > 8 environment
Issue fork cloud-3396795
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3396795-php-8-compatibility
changes, plain diff MR !2078
- 6.x
changes, plain diff MR !2285
Comments
Comment #2
shiv_yadavComment #3
shiv_yadavComment #4
xiaohua guan commented@shiv_yadav
The error is caused by psr/http-message. If you downgrade the version of the package from 2.0 to 1.1, I think the cloud module can be installed.
Comment #5
mukhtarm commentedI don't have
psr/http-messagepackage listed in my composer.json in D10. Although i could see an entry in the composer.lock as follows:Can you explain more how can downgrade the
psr/http-messagepackage to 1.1?Comment #6
xiaohua guan commented@mukhtarm
Can you try the command below?
composer require psr/http-message:1.1Comment #8
mukhtarm commentedYes now the issue is fixed. Thanks @Xiaohua Guan