PHP 8.1 compatibility issues

Created on 10 November 2022, almost 2 years ago
Updated 15 February 2023, over 1 year ago

Problem/Motivation

Module doesn't run on PHP 8.1

Steps to reproduce

update php to 8.1 and symfony 6

  • install/enable module
  • add insta config
  • add block to home page
  • error is returned, nothing is rendered:
Deprecated function: Return type of GuzzleHttp\Cookie\CookieJar::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /Users/xxx/work/xxx-drupal/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php).
include('/Users/xxx/work/xxx-drupal/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php') (Line: 571)
Composer\Autoload\includeFile('/Users/xxx/work/xxx-drupal/vendor/composer/../guzzlehttp/guzzle/src/Cookie/CookieJar.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('GuzzleHttp\Cookie\CookieJar') (Line: 81)
Instagram\Auth\Login->process() (Line: 172)
Instagram\Api->login('xxx', 'yyyxxx') (Line: 134)
📌 Task
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

🇦🇺Australia jannakha Brisbane!

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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.

  • I have created a fresh Drupal 10 environement (Drupal version 10.0.3, PHP 8.1.13), configured Instagram and everything seems to work fine, but same as NicociN, I'm using the latest 7 version. Updating modules dependencies should to the job.

  • Status changed to Closed: cannot reproduce over 1 year ago
Production build 0.71.5 2024