Error for some user menu links

Created on 6 December 2024, 13 days ago

Problem/Motivation

Some additional user menus generate an error when clicked:

Drupal\Core\Render\Component\Exception\InvalidComponentException: [items[1].title] Object value found, but a string is required in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).
Drupal\Core\Template\ComponentsTwigExtension->doValidateProps() (Line: 109)
Drupal\Core\Template\ComponentsTwigExtension->validateProps() (Line: 48)
__TwigTemplate_753fb8837b04b0b72fc185c8317209cc->doDisplay() (Line: 393)
Twig\Template->yield() (Line: 349)
Twig\Template->display() (Line: 364)
Twig\Template->render() (Line: 35)
[...]

Steps to reproduce

To test, simply install a module such as “webform”, which adds a menu item to the user profile (e.g. “Submissions” is added by webform).

Then click on this new link (e.g. /user/1/submissions).

and the error popup.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇫🇷France steveoriol Grenoble 🇫🇷

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

Comments & Activities

Production build 0.71.5 2024