Site crashes with error after installing module

Created on 21 July 2025, 13 days ago

Problem/Motivation

I'm using Drupal Core 11 and Drupal CMS 1.2.2. When I install this module, the site stops working and I get an error page (visible by verbose setting).

The website encountered an unexpected error. Try again later.

Drupal\Core\Render\Component\Exception\InvalidComponentException: [slots] NULL value found, but an object is required in Drupal\Core\Theme\Component\ComponentValidator->validateDefinition() (line 144 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).
Drupal\Core\Theme\ComponentPluginManager->isValidDefinition(Array) (Line: 270)
Drupal\Core\Theme\ComponentPluginManager->Drupal\Core\Theme\{closure}(Array) (Line: 43)
Drupal\Component\Assertion\Inspector::assertAll(Object, Array) (Line: 269)
Drupal\Core\Theme\ComponentPluginManager->alterDefinitions(Array) (Line: 344)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 216)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 154)
Drupal\Core\Theme\ComponentPluginManager->getAllComponents() (Line: 487)
Drupal\Core\Asset\LibraryDiscoveryParser->librariesForComponents() (Line: 408)
Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo('core', 'core') (Line: 153)
Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('core') (Line: 87)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('core') (Line: 66)
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('core') (Line: 149)
Drupal\Core\Cache\CacheCollector->get('core') (Line: 166)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibrariesByExtension('core') (Line: 173)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryByName('core', 'jquery') (Line: 68)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array, Array) (Line: 70)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) (Line: 41)
Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) (Line: 132)
Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object, 'css') (Line: 191)
Drupal\Core\Asset\AssetResolver->getCssAssets(Object, 1, Object) (Line: 288)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 132)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 97)
Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object) (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object, 'kernel.response', Object) (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.response', Object) (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object, 'kernel.response') (Line: 216)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 204)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 715)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Install Drupal CMS using starter kit recipe. Require this module. I didn't even enable the module, I just required it and cleared the cache.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rraney

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

Comments & Activities

  • Issue created by @rraney
  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I tried removing this module using 'composer remove'. I cleared cache and the error is still there, so now I have some doubt about this module being the cause. It happened right after I required it, so I'm at a loss.

  • πŸ‡«πŸ‡·France just_like_good_vibes PARIS

    hello, if you haven't enabled the module (just required using composer), then this cannot be the cause of your issue.
    but when you did the composer require command, maybe you have updated some already enabled extensions in your drupal install.
    From the trace i saw here in the issue, it looks like you have an SDC component with a "bad" definition. BAd in a sense that the component validator is raising an exception.

    you can try sdc_devel module to help, i would advice to go to drupal slack too just in case.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    okay thank you

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I just confirmed doing the composer require command for this module, then clearing cache caused this issue. Prior to this step, the site was working fine.

    Also prior to this step, I installed the Civic Theme. Perhaps there is a conflict.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    rraney@itjlelap31:~/sandboxcms$ lando composer require 'drupal/ui_patterns:^2.0'
    ./composer.json has been updated
    Running composer update drupal/ui_patterns
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 3 installs, 0 updates, 0 removals
    - Locking drupal/ui_patterns (2.0.5)
    - Locking justinrainbow/json-schema (6.4.2)
    - Locking marc-mabe/php-enum (v4.7.1)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 3 installs, 0 updates, 0 removals
    - Downloading marc-mabe/php-enum (v4.7.1)
    - Downloading justinrainbow/json-schema (6.4.2)
    - Downloading drupal/ui_patterns (2.0.5)
    - Installing marc-mabe/php-enum (v4.7.1): Extracting archive
    - Installing justinrainbow/json-schema (6.4.2): Extracting archive
    - Installing drupal/ui_patterns (2.0.5): Extracting archive
    Generating optimized autoload files
    55 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    No security vulnerability advisories found.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    This appears to be due to a conflict with Civic Theme or one of its dependencies. I don't think it's inherently an issue with this module, but it would take some testing.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    Pierre will be creating an issue for Civic Theme. I'm not finding any issues with the modules that Civic Theme requires. You can close :)

  • πŸ‡ΊπŸ‡ΈUnited States rraney
  • πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί
Production build 0.71.5 2024