Log the exception rather than aborting the update if a configuration item does not exist in system_post_update_sort_all_config()

Created on 14 December 2021, over 2 years ago
Updated 17 January 2023, over 1 year ago

Problem/Motivation

When upgrading from 9.0.0 to 9.3.0, and running drush updatedb, I see the following error which prevents the database from being updated

$ drush updatedb
---------- -------------------- ------------- --------------------------------
Module Update ID Type Description
---------- -------------------- ------------- --------------------------------
system sort_all_config post-update Sort all configuration
according to its schema.
taxonomy clear_views_argume post-update Clear the cache after
nt_validator_plugi deprecating Term views
ns_cache argument validator.
tour joyride_selectors_ post-update Convert Joyride selectors to
to_selector_proper `selector` property. @see
ty tour_tour_presave()
user update_roles post-update Calculate role dependencies
and remove non-existent
permissions.
views configuration_enti post-update Clear errors caused by
ty_relationships relationships to configuration
entities.
views remove_sorting_glo post-update Clear caches due to removal of
bal_text_field sorting for global custom text
field.
views rename_default_dis post-update Rename the setting for showing
play_setting the default display to
'default_display'.
views sort_identifier post-update Add the identifier option to
all sort handler
configurations.
views title_translations post-update Rebuild routes to fix view
title translations.
---------- -------------------- ------------- --------------------------------

Do you wish to run the specified pending updates? (yes/no) [yes]:
> yes

> [notice] Update started: system_post_update_sort_all_config
> [error] The configuration property display.default.display_options.empty.area.content.valu
e doesn't exist.
> [error] Update failed: system_post_update_sort_all_config
[error] Update aborted by: system_post_update_sort_all_config
[error] Finished performing updates.

Steps to reproduce

- Install 9.0.0
- Upgrade to 9.3.0
- Run drush updatedb

Proposed resolution

Handle the configuration property that doesn't exist

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

9.4

Component
SystemΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡¨πŸ‡¦Canada danielflippance

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024