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.

Finally, I don't think the problem comes from “UI Suite DaisyUI”,
because I've just tried it with another UI suite theme “UI Suite Bootstrap”, and I've got the same Issue.

So it's probably a problem with the “UI Patterns 2.x (with SDC)” module.

See: https://www.drupal.org/project/ui_patterns/issues/3491238#comment-15889193

Comments

steveoriol created an issue. See original summary.

steveoriol’s picture

Issue summary: View changes
steveoriol’s picture

steveoriol’s picture

g4mbini’s picture

Issue tags: +UI Suite Initiative

Hello @steveoriol ,

If you upgrade to beta6 of UI Patterns 2, do you still get the error ?

Cheers,
Michael

steveoriol’s picture

Yes, everything works fine now :-)
I use :

  1. UI Patterns 2.0.0-beta6
  2. UI Suite DaisyUI 4.0.0-alpha7
steveoriol’s picture

Status: Active » Fixed
g4mbini’s picture

Status: Fixed » Closed (works as designed)