Fatal errors, incompatible methods

Created on 11 March 2022, almost 3 years ago
Updated 22 July 2024, 5 months ago

Problem/Motivation

I upgraded my site, and I got these errors when I tried to run database updates:

Unable to decode output into JSON: Syntax error

  Fatal error: Declaration of Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad::buildConfigurationForm(array $form, Drupal\Core\
  Form\FormStateInterface $form_state) must be compatible with Drupal\openid_connect\Plugin\OpenIDConnectClientBase::buildConfigurationForm(array $form
  , Drupal\Core\Form\FormStateInterface $form_state): array in /Users/den/Sites/Moovia/moovia-d9/web/modules/contrib/openid_connect_windows_aad/src/Plu
  gin/OpenIDConnectClient/WindowsAad.php on line 35โ€จโ€จโ€จUnable to decode output into JSON: Syntax error
  Fatal error: Declaration of Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad::retrieveTokens($authorization_code) must be comp
  atible with Drupal\openid_connect\Plugin\OpenIDConnectClientBase::retrieveTokens(string $authorization_code): ?array in /Users/den/Sites/Moovia/moovi
  a-d9/web/modules/contrib/openid_connect_windows_aad/src/Plugin/OpenIDConnectClient/WindowsAad.php on line 167
In ProcessBase.php line 171:

  Unable to decode output into JSON: Syntax error

  Fatal error: Declaration of Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad::getEndpoints() must be compatible with Drupal\op
  enid_connect\Plugin\OpenIDConnectClientInterface::getEndpoints(): array in /Users/den/Sites/Moovia/moovia-d9/web/modules/contrib/openid_connect_windo
  ws_aad/src/Plugin/OpenIDConnectClient/WindowsAad.php on line 150
In ProcessBase.php line 171:

  Unable to decode output into JSON: Syntax error

  Fatal error: Declaration of Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad::retrieveUserInfo($access_token) must be compatib
  le with Drupal\openid_connect\Plugin\OpenIDConnectClientBase::retrieveUserInfo(string $access_token): ?array in /Users/den/Sites/Moovia/moovia-d9/web
  /modules/contrib/openid_connect_windows_aad/src/Plugin/OpenIDConnectClient/WindowsAad.php on line 242

Steps to reproduce

D9 - 9.3.7
OpenID Connect / OAuth client 2.0.0-alpha12
OpenID Connect Microsoft Azure Active Directory client 8.x-1.4

Proposed resolution

- I just created a patch.

Remaining tasks

Test.

User interface changes

No.

API changes

No.

Data model changes

No.

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡ญ๐Ÿ‡บHungary denes.szabo Hungary

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