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.
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.
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.
Basically it is a simple helper module to quickly find possibly broken
configurations.
### How to use it
...
...
@@ -13,7 +24,8 @@ 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:
If administration is not accessible (fatal error), then Drush command