Error when importing config - entity type does not exist

Created on 5 August 2025, 27 days ago

Problem/Motivation

Steps to reproduce

1. configure one or more search components
2. export config
3. try to import that config elsewhere

The config import is partially successful, but then fails with an error like this:

 [notice] Synchronized configuration: create coveo.search_component.content.
 [notice] Synchronized configuration: create coveo.search_component.standalone.
 [warning] Undefined array key 1 ConfigManager.php:513
 [warning] Undefined array key 2 ConfigManager.php:513

In EntityTypeManager.php line 142:
                                                                    
  The "coveo.search_component.content" entity type does not exist.  

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom malcomio

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

Comments & Activities

  • Issue created by @malcomio
  • 🇬🇧United Kingdom malcomio

    This seems to be specific to block config based on search components - the actual components are imported correctly.

    Inside \Drupal\Component\Plugin\Discovery\DiscoveryTrait::doGetDefinition I can see that a definition has been registered as coveo_search_component, but the value of $plugin_id does not match - e.g. in my case it is coveo.search_component.content

  • 🇬🇧United Kingdom malcomio

    If I manually edit the exported config to remove the content dependency, this error does not occur.

Production build 0.71.5 2024