Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Broken Config

No security coverage Under active development 4 sites

This module helps identify and manage corrupted configuration files in Drupal. It scans your Drupal installation for configuration that cannot be loaded, allowing you to easily find and then fix, delete, or re-import these broken configurations.

Module for finding broken configuration

Why

Drupal makes it possible to update configuration in different ways. The ConfigFactory::getEditable allows editing any configuration type. It also allows to mess up and bad - for example, assuming that some entity configuration exists and partially updating creates an empty config file that can't be loaded because required values are missing.
It results in a broken admin side - either the toolbar link can't be loaded (like the view configuration), or some admin screen related to that config fails to load. When that happens, it is hard to find the config which is broken.

What the module does

The module currently scans all config entity types and queries all entity IDs from the config table, which are loaded one by one. If the loading fails, we can assume it's broken and can be either deleted, re-imported, or manually fixed with Drush config commands.

Basically it is a simple helper module to quickly find possibly broken configurations.

How to use it

  • Open administration url /admin/config/development/configuration/broken
  • Click on the Start scanning button
  • After batch job is finished, all problematic configs are shown.

If administration is not accessible (fatal error), then Drush command could help:
drush broken_config:scan

If problematic configs are found, then it is possible to delete them with
drush cdel config_name

Alternatively, hook_update_N() can be used to fix it up.

Ask your assistant about Broken Config

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0-beta1 Pre-release 10 Apr 7, 2023
1.0.x-dev Dev 10–11 Apr 7, 2023