Consumer list page showing WSOD after upgrade

Created on 15 November 2022, almost 2 years ago
Updated 11 June 2024, 5 months ago

Problem/Motivation

After upgrading from 5.0 to 5.2.2, I can no longer access my list of consumers at admin/config/services/consumer

The website encountered an unexpected error. Please try again later.
TypeError: Return value of Drupal\consumers\Entity\Consumer::getClientId() must be of the type string, null returned in Drupal\consumers\Entity\Consumer->getClientId() (line 252 of modules/composer/consumers/src/Entity/Consumer.php).
Drupal\consumers\Entity\Consumer->getClientId() (Line: 32)

Steps to reproduce

  1. Run `composer require 'drupal/simple_oauth:^5.2'`
  2. Run `drush cr`
  3. Visit admin/config/services/consumer
🐛 Bug report
Status

Closed: won't fix

Version

5.2

Component

Code

Created by

🇦🇺Australia championlife

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.

  • First commit to issue fork.
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India apatel0325

    These errors come from the consumers module so, you have to apply the below patch on the consumers module.
    I got the same problem and the issue is fixed when I run the below patch.
    Thanks!

  • Status changed to RTBC over 1 year ago
  • 🇮🇳India SenthilMohith Chennai

    Yes, the above error occurred in the consumers module. Got the below error while navigating to the page /admin/config/services/consumer.

    TypeError: Drupal\consumers\Entity\Consumer::getClientId(): Return value must be of type string, null returned in Drupal\consumers\Entity\Consumer->getClientId() (line 252 of /var/www/docroot/modules/contrib/consumers/src/Entity/Consumer.php)

    I have applied the patch #4 and it's loading the consumers page without any error.

  • Status changed to Closed: won't fix 5 months ago
  • 🇳🇱Netherlands bojan_dev

    Bug should be reported on the consumers module.

Production build 0.71.5 2024