Incorrect version requirements

Created on 7 February 2022, over 2 years ago
Updated 3 August 2023, about 1 year ago

Problem/Motivation

Guzzle v2.0 and v3.0 report they are compatible with Drupal 8, but require a dependency for kevinrob/guzzle-cache-middleware:^3.2 which with no other dependencies set will resolve to v3.4.0. This version of the library has a hardcoded dependency on \GuzzleHttp\Psr7\Utils, which doesn't exist in Guzzle guzzlehttp/psr7:1.6.1, which is the specific version that drupal/core-recommended:^8.9 will install. This causes a fatal error when the module is used.

Steps to reproduce

Install either v2.0 or v3.0 on the most recent version of Drupal 8. Configure an API call to use the Guzzle Cache and make a call. An error
Error: Class 'GuzzleHttp\Psr7\Utils' not found in Kevinrob\GuzzleCache\CacheEntry->__wakeup() (line 283 of /var/core/vendor/kevinrob/guzzle-cache-middleware/src/CacheEntry.php).
will be generated.

Proposed resolution

The v3.0 version of the module should probably be set to be Drupal 9 only, as this uses guzzlehttp/psr7:1.8.2 where the Utils object exists. The v2.0 version should be marked as Drupal 8 only and have its requirement for kevinrob/guzzle-cache-middleware pinned to a version that does not rely on GuzzleHttp\Psr7\Utils

πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom MrDaleSmith

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024