Problem/Motivation

When trying to run of of the latest Drupal core update hooks system_post_update_add_langcode_to_all_translatable_config I got the following error:

AssertionError: Failed on config name 'preview.settings' in assert() (line 264 of /var/www/html/web/core/modules/system/system.post_update.php).

Steps to reproduce

1. Update to latest Drupal core 10.3.1
2. Run drush updb
3. Verify that system_post_update_add_langcode_to_all_translatable_config will fail.

Proposed resolution

I could fix that by using a mapping instead of a sequence and since we have know keys this should be fine.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yannickoo created an issue. See original summary.

yannickoo’s picture

Status: Active » Needs review

a.dmitriiev made their first commit to this issue’s fork.

a.dmitriiev’s picture

Status: Needs review » Fixed

It seems that core since Drupal 10.3 insists that all simple configurations are mappings (config objects). I have changed the config schema and created an update hook for re-saving the existing settings in a new format.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.