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

Created on 22 April 2024, 8 months ago
Updated 30 August 2024, 4 months ago

Problem/Motivation

I have upgraded from Drupal 9.5 to Drupal 10.2. After drush command updb and configuration import getting this error.

The website encountered an unexpected error. Try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_type" plugin does not exist. Valid plugin IDs for Drupal\Core\Condition\ConditionManager are: gtag_domain, gtag_language, language, current_theme, request_path, user_role, webform, entity_bundle:block_content, entity_bundle:comment, entity_bundle:contact_message, entity_bundle:crop, entity_bundle:media, entity_bundle:menu_link_content, entity_bundle:node, entity_bundle:redirect, entity_bundle:taxonomy_term, entity_bundle:vote, entity_bundle:webform_submission, entity_bundle:paragraph in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/docroot/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php)

Steps to reproduce

  1. Upgrade the website from Drupal 9 to 10
  2. Get to the website
  3. You will see the website encountered an unexpected error.

Proposed resolution

"node_type" is removed from Drupal 10 and instead we should use "entity_bundle:node"
Go to the config file "modules/contrib/simple_sitemap/modules/simple_sitemap_views/tests/modules/simple_sitemap_views_test/config/install/views.view.simple_sitemap_views_test_view.yml"
replace "id: node_type" With "id: entity_bundle:node"
Import updated Configuration Synchronization and clear the caches

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom vitaliych

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

Comments & Activities

Production build 0.71.5 2024