Upgrading from Drupal 9.5.10 to Drupal 10.1.x - errors in config export generated files.

Created on 5 August 2023, over 1 year ago
Updated 16 December 2023, about 1 year ago

Problem/Motivation

Upgraded from Drupal 9.5.10 to Drupal 10.1.x.

Upgrade Status screen on Drupal 9 showed 100% ready to upgrade.

changed my composer version values for core to 10, and ran drush updb -y and received no errors.

went to look at the site and I got this fun error.

Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "node_type" plugin does not exist.

googling this, I found this issue https://www.drupal.org/project/drupal/issues/3356728 💬 The "node_type" plugin does not exist - upgrade from D9 to D10 Closed: cannot reproduce which if you scroll to the bottom indicated that there might be a problem in a config YML file generated with drush cex.

So I searched for "node_type" in my config files, and found it in ...

block_visibility_groups.block_visibility_group.FOO.yml

The circled spot had the value "node_type".

Changing it to entity_bundle:node, and then running drush deploy solved the problem.

Proposed resolution

create an update step that changes these values generated in a config export.

... I run `drush cex` after updating the code and running drush updb ... I hope other people do also.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States alphex Atlanta, GA USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024