Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Broken Config

No security coverage
View on drupal.org

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.

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 Release date
1.0.0-beta1 Pre-release Apr 7, 2023
1.0.x-dev Dev Apr 7, 2023