Unable to place Block on them(Theme name is empty)

Created on 20 February 2023, almost 2 years ago
Updated 23 June 2023, over 1 year ago

Problem/Motivation

Unable to add the block in admin > structure > Place block. Getting the error on the file SiteBrandingPerRoleBlock.php the log messages are below,

Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "theme" for route "system.theme_settings_theme" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 203 of /var/www/html/web/core/lib/Drupal/Core/Routing/UrlGenerator.php).

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 201 of /var/www/html/web/core/lib/Drupal/Core/Routing/UrlGenerator.php)

Steps to reproduce

1. Used the Drupal core theme, Olivero and Claro. Having multiple roles for the user.
2. Used normal installation of the module
3. Navigated to Structure place block.
4. Filtered and tried to add block Site branding per role block nothing is worked.
5. No page break, but able to see error logs.

Core version: 10.0.3
site_branding_per_role: 1.0.2

Proposed resolution

Fix the theme value for the route.

Remaining tasks

Create fix and Manual Testing.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India arunkumark Coimbatore

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

Comments & Activities

Production build 0.71.5 2024