- πΊπΈUnited States dave reid Nebraska USA
This should be solved by π Drop Drupal 8 support Fixed , going to mark this as a duplicate even though it was filed first since the other has active work on it.
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.
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.
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
Closed: duplicate
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This should be solved by π Drop Drupal 8 support Fixed , going to mark this as a duplicate even though it was filed first since the other has active work on it.