hook_config_schema_info_alter injected optional migrate_plus config schema

Created on 8 July 2025, 1 day ago

Problem/Motivation

After upgrading to 6.1.0, migrate_tools.module contains a hook_config_schema_info_alter() that's trying to inject a config schema that's related to migrate_plus and that leads to errors on our site when we try to access some of the config pages, e.g. /admin/config/system/site-information

The website encountered an unexpected error. Try again later.

Drupal\Core\Config\Schema\ConfigSchemaAlterException: Invoking hook_config_schema_info_alter() has added (migrate_plus.migration.*) schema definitions in Drupal\Core\Config\TypedConfigManager->alterDefinitions() (line 465 of core/lib/Drupal/Core/Config/TypedConfigManager.php).

I think the problem is that our sites do not use migrate_tools at all, and it doesn't seem to be a hard dependency.

Steps to reproduce

1. Upgrade `migrate_tools` to 6.1.0
2. Do not install or enable `migrate_plus`
3. Visit config page like /admin/config/system/site-information

Proposed resolution

A quick fix would be to add a check before injecting the optional config schema.

πŸ› Bug report
Status

Active

Version

6.1

Component

Code

Created by

πŸ‡ΉπŸ‡ΌTaiwan peterwcm

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024