Update PAAPI to D10 compatible version

Created on 13 September 2023, 10 months ago
Updated 18 September 2023, 9 months ago

Problem/Motivation

Running a composer update from 9 to 10 will throw an error because of the composer.json

Problem 1
- Root composer.json requires ten7/amazon-paapi5-php-sdk ^1.0@alpha -> satisfiable by ten7/amazon-paapi5-php-sdk[1.0.0-alpha1].
- drupal/core-recommended[10.1.0-rc1, ..., 10.1.x-dev] require guzzlehttp/guzzle ~7.7.0 -> satisfiable by guzzlehttp/guzzle[7.7.0, 7.7.1, 7.7.x-dev].
- Conclusion: don't install guzzlehttp/guzzle 7.7.1 (conflict analysis result)
- drupal/core-recommended 10.1.0-beta1 requires guzzlehttp/guzzle ~7.5.1 -> satisfiable by guzzlehttp/guzzle[7.5.1, 7.5.2, 7.5.3, 7.5.x-dev].
- Conclusion: don't install guzzlehttp/guzzle 7.5.3 (conflict analysis result)
- ten7/amazon-paapi5-php-sdk 1.0.0-alpha1 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.2.0, ..., 6.5.x-dev].
- You can only install one version of a package, so only one of these can be installed: guzzlehttp/guzzle[4.0.0-rc.1, ..., 4.x-dev, 5.0.0, ..., 5.3.x-dev, 6.0.0, ..., 6.5.x-dev, 7.0.0-beta.1, ..., 7.9.x-dev].
- drupal/core-recommended 10.1.0-alpha1 requires guzzlehttp/guzzle ~7.5.0 -> satisfiable by guzzlehttp/guzzle[7.5.0, ..., 7.5.x-dev].
- Root composer.json requires drupal/core-recommended ^10.1 -> satisfiable by drupal/core-recommended[10.1.0-alpha1, ..., 10.1.x-dev].

Adding "drupal/core": "^8.8 || ^9 || ^10", does not change that.
Ok that again seems to be a guzzle dependency hell. The package has guzzle 6.2.

composer remove ten7/amazon-paapi5-php-sdk
Does not work because amazon_pa requires it.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Collecting similar issues to find a solution

https://www.drupal.org/project/drupal/issues/3368790 πŸ› guzzlehttp/promises 2.0 blocking update to 10.1 due to AWS SDK Fixed

[Sat Sep 16 11:14:03.175173 2023] [php:error] [pid 13829] [client 127.0.0.1:52916] PHP Fatal error: Declaration of Drupal\\dblog\\Logger\\DbLog::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\\Log\\LoggerInterface::emergency($message, array $context = []) in /srv/http/WORKSPACE_DRUPAL/EIGENE_PROJEKTE/PRODUCT_DISTRI_D12/web/core/lib/Drupal/Core/Logger/RfcLoggerTrait.php on line 20, referer: http://dev12.kopfhoerer-berater.de/

psr seems to cause this.

Solution

how it is done here: https://www.drupal.org/project/amazon_paapi β†’
use: https://github.com/thewirecutter/paapi5-php-sdk

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany marcoka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024