Can not update to 3 if options module is disabled

Created on 30 August 2024, 4 months ago
Updated 17 September 2024, 4 months ago

Hi, just noticed that I could not upgrade from Gutenberg 2 to 3 without having the (core) options module enabled. The database updates fails with:

[notice] Update started: gutenberg_post_update_install_missing_configurations
[error]  Unable to determine class for field type 'list_string' found in the 'field.storage.0' configuration 
[error]  Update failed: gutenberg_post_update_install_missing_configurations 
[error]  Update aborted by: gutenberg_post_update_install_missing_configurations 
[error]  Finished performing updates. 

and error message is

Drupal\Component\Plugin\Exception\PluginNotFoundException: Unable to determine class for field type 'list_string' found in the 'field.storage.0' configuration in Drupal\field\FieldStorageConfigStorage->mapFromStorageRecords() (line 167 of /var/www/html/web/core/modules/field/src/FieldStorageConfigStorage.php).

Probably an edge case, but the solution is to enable options module first.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡΄Norway vegardjo

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

Comments & Activities

  • Issue created by @vegardjo
  • πŸ‡ΈπŸ‡ͺSweden kristofferwiklund

    Had the same problem. I also had:

    [notice] Update started: gutenberg_post_update_install_missing_configurations
    [error] Field 'field_pattern_category' on entity type 'block_content' references a target entity type 'taxonomy_term' which does not exist.
    [error] Update failed: gutenberg_post_update_install_missing_configurations

    So I enable the taxonomy module also. After that the update went fine.

    The workaround is to enable Options and Taxonomy module and then update the module. It is dependencies on the new version. But the update hook does not reflect that.

Production build 0.71.5 2024