Problem/Motivation

I was working on a project without any problem. When I upgraded to UIP 2.0.11, I got the following fatal (on the Patterns library page) that seems due to a component definition in Olivero (which is installed but not set as default):

The website encountered an unexpected error. Try again later.

Drupal\Core\Render\Component\Exception\InvalidComponentException: Data provided to prop "attributes" for component "olivero:teaser" is not a valid instance of "Drupal\Core\Template\Attribute" in Drupal\Core\Theme\Component\ComponentValidator->validateClassProps() (line 289 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).
Drupal\Core\Theme\Component\ComponentValidator->validateProps() (Line: 124)
Drupal\Core\Template\ComponentsTwigExtension->doValidateProps() (Line: 106)
Drupal\Core\Template\ComponentsTwigExtension->validateProps() (Line: 52)
__TwigTemplate_4ad5feab68d7df6937911fd9262130fa->doDisplay() (Line: 402)
Twig\Template->yield() (Line: 135)
__TwigTemplate_5da4adf6402b08e14ac060abf5dc93b8___1345577909->doDisplay() (Line: 402)
Twig\Template->yield() (Line: 44)
__TwigTemplate_5da4adf6402b08e14ac060abf5dc93b8->doDisplay() (Line: 402)
Twig\Template->yield() (Line: 358)
Twig\Template->display() (Line: 373)
Twig\Template->render() (Line: 51)
Twig\TemplateWrapper->render() (Line: 234)
Drupal\Core\Template\TwigEnvironment->renderInline() (Line: 54)
Drupal\Core\Render\Element\InlineTemplate::preRenderInlineTemplate()
call_user_func_array() (Line: 107)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 876)
Drupal\Core\Render\Renderer->doCallback() (Line: 438)
Drupal\Core\Render\Renderer->doRender() (Line: 510)
Drupal\Core\Render\Renderer->doRender() (Line: 227)
Drupal\Core\Render\Renderer->render() (Line: 491)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 109)
__TwigTemplate_f1e566f4766750ef59fdea36358e4bc2->{closure}() (Line: 2106)
Twig\Extension\CoreExtension::captureOutput() (Line: 80)
__TwigTemplate_f1e566f4766750ef59fdea36358e4bc2->macro_render_story() (Line: 52)
__TwigTemplate_f1e566f4766750ef59fdea36358e4bc2->doDisplay() (Line: 402)
Twig\Template->yield() (Line: 358)
Twig\Template->display() (Line: 373)
Twig\Template->render() (Line: 51)
Twig\TemplateWrapper->render() (Line: 1520)
Twig\Extension\CoreExtension::include() (Line: 93)
__TwigTemplate_490a2f4ae60b34a33b75311aac7b9233->doDisplay() (Line: 402)
Twig\Template->yield() (Line: 358)
Twig\Template->display() (Line: 373)
Twig\Template->render() (Line: 51)
Twig\TemplateWrapper->render() (Line: 34)
twig_render_template() (Line: 380)
Drupal\Core\Theme\ThemeManager->render() (Line: 497)
Drupal\Core\Render\Renderer->doRender() (Line: 227)
Drupal\Core\Render\Renderer->render() (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 131)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 188)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)

If I uninstall Olivero, everything goes well.

Info stack : UI Suite modules + SDC Devel activated

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

g4mbini created an issue. See original summary.

g4mbini’s picture

Issue summary: View changes
g4mbini’s picture

Title: Big fatal after upgrading to UIP 2.0.11 related to Olivero teaser component » Patterns library: Big fatal after upgrading to UIP 2.0.11 related to Olivero teaser component
g4mbini’s picture

Issue summary: View changes
pdureau’s picture

Title: Patterns library: Big fatal after upgrading to UIP 2.0.11 related to Olivero teaser component » Stories based on JSON schema examples need empty Attributes
Assigned: Unassigned » pdureau

pdureau’s picture

Assigned: pdureau » g4mbini
Status: Active » Needs review
g4mbini’s picture

Status: Needs review » Reviewed & tested by the community

issue solved thanks

g4mbini’s picture

Assigned: g4mbini » Unassigned
grimreaper’s picture

Status: Reviewed & tested by the community » Needs work

Needs to fix code quality.

pdureau’s picture

Assigned: Unassigned » just_like_good_vibes
Status: Needs work » Reviewed & tested by the community

pipeline fixed (the warning is not related to the current fix)

just_like_good_vibes made their first commit to this issue’s fork.

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.