- Issue created by @ollie-db
- πΊπ¦Ukraine ollie-db
Yet another issue that I have encountered in docker 4 drupal:
Problem 1 - centarro/certified-projects[1.0.0, ..., 1.x-dev] require drupal/commerce_square ^1.5 -> satisfiable by drupal/commerce_square[1.5.0, 1.6.0, 1.7.0, 1.x-dev]. - drupal/commerce_square[1.5.0, ..., 1.x-dev] require square/square ^17.2 -> satisfiable by square/square[17.2.0.20220216, 17.3.0.20220316]. - square/square 17.2.0.20220216 requires php >=7.2 <8.1 -> your php version (8.2.12) does not satisfy that requirement. - square/square 17.3.0.20220316 requires php >=7.2 <8.2 -> your php version (8.2.12) does not satisfy that requirement. - Root composer.json requires centarro/certified-projects ^1.0 -> satisfiable by centarro/certified-projects[1.0.0, ..., 1.x-dev].
- πΊπ¦Ukraine akozoriz
@bardiuk, Looks like your PHP version is 8.2.12, that does not satisfy the requirement
square/square 17.3.0.20220316 requires php >=7.2 <8.2
- πΊπ¦Ukraine ollie-db
Yeah I get that, I have no idea why would this restriction exist. So not user friendly. There are a lot of issues during installation. I have already wasted 2 hours trying to install it.
- πΊπΈUnited States GreenSkunk Great Valley, NY
It's due to the versions of included square having a range of PHP requirements. Please see issue #3338931 "Update square/square dependency in order to support PHP 8.2" π Update square/square dependency in order to support PHP 8.2 Fixed
Getting the same error - have you been able to find a resolution?
- π³π¬Nigeria ojchris
Despite the committed fix in the issue mentioned in #5 the error persist as of today 26th January.
- Status changed to Closed: works as designed
9 months ago 6:09pm 8 April 2024 - πΊπΈUnited States rszrama
Sorry, this is standard composer stuff. We can document it a bit more, I suppose, but the output is telling you the issue - you need to match the PHP version expected by the packages, many of which are well beyond our control.
As I just posted in #3432848: DDEV installation instruction doesn't work β , another option if you know the runtime environment will use the correct version is to append
--ignore-platform-reqs
to your composer command.