Error when visiting /admin/structure/component/status

Created on 19 March 2025, 3 months ago

Overview

Testing out XB, and I moved over my theme. XB works, but when going to see a list of disabled components at /admin/structure/component/status, I get the following error:

The website encountered an unexpected error. Try again later.

AssertionError: assert($prop_schema['type'][0] === Attribute::class) in assert() (line 96 of modules/contrib/experience_builder/src/PropShape/PropShape.php).
Drupal\experience_builder\PropShape\PropShape::getComponentPropsForMetadata() (Line: 51)
Drupal\experience_builder\ComponentMetadataRequirementsChecker::check() (Line: 292)
Drupal\experience_builder\Plugin\ExperienceBuilder\ComponentSource\SingleDirectoryComponent::componentMeetsRequirements() (Line: 94)
Drupal\experience_builder\Plugin\ComponentPluginManager->setCachedDefinitions() (Line: 214)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 39)
Drupal\experience_builder\Controller\ComponentStatusController->__invoke()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 593)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
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)

I see the same error in my watchdog log. I'm going to try to figure out what component is contributing to this error. But either way, the page should not totally die.

This page should have the capability to show all potential components (even those with malformed yaml)

πŸ› Bug report
Status

Active

Version

0.0

Component

Component sources

Created by

πŸ‡ΊπŸ‡ΈUnited States mherchel Gainesville, FL, US

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

Comments & Activities

  • Issue created by @mherchel
  • πŸ‡ΊπŸ‡ΈUnited States mherchel Gainesville, FL, US

    The following component placed in my theme's components directory is what breaks it.

  • Assigned to mayur-sose
  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    @mayur-sose, could you please try to reproduce this? πŸ™

  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί
  • The reported issue is no longer applicable due to recent structural changes in the UI.

    The Component Status page has been moved under the Appearance section. The new path is:

    /admin/appearance/component/status

    I have visited the updated component status page and did not encounter any errors. The page loads correctly and displays the list of disabled components as expected.

Production build 0.71.5 2024