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
Issue fork ui_patterns-3555248
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
Comment #2
g4mbiniComment #3
g4mbiniComment #4
g4mbiniComment #5
pdureau commentedComment #7
pdureau commentedComment #8
g4mbiniissue solved thanks
Comment #9
g4mbiniComment #10
grimreaperNeeds to fix code quality.
Comment #11
pdureau commentedpipeline fixed (the warning is not related to the current fix)
Comment #14
just_like_good_vibes