Error when the theme logo is not set

Created on 9 February 2024, 9 months ago
Updated 18 April 2024, 7 months ago

Getting the following error when visiting /user/login on a site with no theme logo:

TypeError: Drupal\Core\File\FileUrlGenerator::generateString(): Argument #1 ($uri) must be of type string, null given, called in /var/www/html/web/modules/contrib/simplelogin/simplelogin.module on line 115 in Drupal\Core\File\FileUrlGenerator->generateString() (line 58 of core/lib/Drupal/Core/File/FileUrlGenerator.php).

Seems to be related to line 115 of simplelogin.module:

$variables['logo'] = \Drupal::service('file_url_generator')->generateString(theme_get_setting('logo.url'));

🐛 Bug report
Status

Fixed

Version

7.1

Component

Code

Created by

🇨🇦Canada mrogers

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024