- Issue was unassigned.
- Status changed to Needs review
12 months ago 1:23pm 22 May 2024
Importing configuration with drush config:import
fails if no config is present for front_page module and a role gets deleted during configuration import (not related to this module).
front_page.settings.yml
and user.role.***.yml
which will cause the role to be deleted or update (delete and re-create)config
table in DBdrush cim --partial
[error] Drupal\Core\Config\ConfigException: Errors occurred during import in Drush\Drupal\Commands\config\ConfigImportCommands->doImport()In ConfigImportCommands.php line 324:
The import failed due to the following reasons:
Deleted and replaced configuration "front_page.settings"
front_page_user_role_delete
removes rid_*
key from the config, but if config was missing this creates a default config object. Before import this config was not present so config:import
tries to create it but fails as config is already created when a role is deleted in the import process.
So, front_page_user_role_delete
should check if config is present, and if not present don't try to remove a non-existent key from it and create the config as a side-effect.
Needs review
10.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.