Site crash after update related to missing api url

Created on 13 August 2025, 3 months ago

Problem/Motivation

After updating from 2.0.0 to 2.0.2, site crashes with php error:

TypeError: Drupal\dubbot\Client::dubbotApiUrl(): Return value must be of type string, null returned in Drupal\dubbot\Client->dubbotApiUrl() (line 216 of /var/www/html/drupal/docroot/modules/contrib/dubbot/src/Client.php).

The Client.php file line 216 is attempting to read the api_url config and if the api url is not set, null is returned and null check is missing.

Our dubbot settings (/admin/config/content/dubbot/settings) did not have a api url configured and the field states "Update only if directed to do so."

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024