- Issue created by @tcgak1_carroll
- Status changed to Postponed: needs info
over 1 year ago 11:56pm 26 April 2023 That may be a result of this change: #3261251: Remove deprecated node module functions โ But it is not possible to know the cause on that site from the error alone without more technical details.
Can you please do a few things:
- Provide core upgrade procedure you used in detail.
- Verify that every contributed module and theme on the site is compatible with Drupal 10. You verify that with https://www.drupal.org/project/upgrade_status โ .
- Check if this is ๐ฌ PluginNotFoundException: The "node_type" plugin does not exist Fixed .
- Obtain for us a stack trace of this error. Look on drupal.org for instructions.
- ๐ฌ๐งUnited Kingdom andrew robinson
I think this is unlikely to be a Drupal Core problem and more likely to be caused by a contrib module that has either not been updated to its newest version, is not yet compatible, or has failed to have its database updates applied successfully.
I experienced this problem myself on a Drupal 10 upgrade today. The error message appeared when I visited a node edit page.
My first suggestion is that you run
drush updatedb
.If there are no db updates / that doesn't solve the problem then check your contrib modules are up to date.
composer update
will update modules within their current major version, but if a new major version exists you may need tocomposer require
the new one.In my particular case, neither of the above helped. I did notice however that the pathauto module had a ticket a while ago about this issue. ( https://www.drupal.org/project/pathauto/issues/3222776 โ ).
To test if this was the cause I disabled the module on my local copy of the site and the error went away. I re-enabled the module and the error was still gone. This suggests to me that at some point my site failed to apply an update hook from pathauto. After reverting to a backup database I boiled the fix down to just needing to runpathauto_update_8108()
The function can be run from drush directly :
drush eval 'include_once(DRUPAL_ROOT . "/modules/contrib/pathauto/pathauto.install"); pathauto_update_8108()'
- ๐บ๐ธUnited States tcgak1_carroll
Thank you @cilefen - I was able to use composer and utilized the Upgrade Status module. After a lot of uninstalling and troubleshoot my Upgrade status is now at 100%, but when I try to install drupal10 using composer I get a new error:
Problem 1
- Root composer.json requires drupal/core-recommended 10.0.9 -> satisfiable by drupal/core-recommended[10.0.9].
- drupal/core-recommended 10.0.9 requires psr/log ~3.0.0 -> found psr/log[3.0.0] but these were not loaded, likely because it conflicts with another require.I guess I will close this out and search for new answers. :|
My json file is:
{ "name": "drupal/legacy-project", "description": "Project template for Drupal 9 projects with composer following drupal/drupal layout", "type": "project", "license": "GPL-2.0-or-later", "homepage": "https://www.drupal.org/project/drupal", "support": { "docs": "https://www.drupal.org/docs/user_guide/en/index.html", "chat": "https://www.drupal.org/node/314178" }, "repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" } ], "require": { "composer/installers": "^1.9", "drupal/bootstrap5": "^3.0", "drupal/composer_deploy": "^1.7", "drupal/core-composer-scaffold": "9.4.15", "drupal/core-project-message": "9.4.15", "drupal/core-recommended": "9.4.15", "drupal/core-vendor-hardening": "^9.5", "drupal/upgrade_status": "^4.0", "drush/drush": "^11.5" }, "conflict": { "drupal/drupal": "*" }, "minimum-stability": "stable", "prefer-stable": true, "config": { "allow-plugins": { "composer/installers": true, "drupal/core-composer-scaffold": true, "drupal/core-project-message": true, "drupal/core-vendor-hardening": true, "dealerdirect/phpcodesniffer-composer-installer": true }, "sort-packages": true }, "extra": { "drupal-scaffold": { "locations": { "web-root": "./" } }, "installer-paths": { "core": [ "type:drupal-core" ], "libraries/{$name}": [ "type:drupal-library" ], "modules/contrib/{$name}": [ "type:drupal-module" ], "profiles/contrib/{$name}": [ "type:drupal-profile" ], "themes/contrib/{$name}": [ "type:drupal-theme" ], "drush/Commands/contrib/{$name}": [ "type:drupal-drush" ], "modules/custom/{$name}": [ "type:drupal-custom-module" ], "profiles/custom/{$name}": [ "type:drupal-custom-profile" ], "themes/custom/{$name}": [ "type:drupal-custom-theme" ] }, "drupal-core-project-message": { "include-keys": [ "homepage", "support" ], "post-create-project-cmd-message": [ "<bg=blue;fg=white> </>", "<bg=blue;fg=white> Congratulations, youโve installed the Drupal codebase </>", "<bg=blue;fg=white> from the drupal/legacy-project template! </>", "<bg=blue;fg=white> </>", "", "<bg=yellow;fg=black>Next steps</>:", " * Install the site: https://www.drupal.org/docs/installing-drupal", " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", " * Get support: https://www.drupal.org/support", " * Get involved with the Drupal community:", " https://www.drupal.org/getting-involved", " * Remove the plugin that prints this message:", " composer remove drupal/core-project-message" ] } } }
- Status changed to Closed: cannot reproduce
over 1 year ago 10:51pm 3 May 2023 - ๐จ๐ฆCanada dadderley Vancouver
I am having this problem as well.
According to the Upgrade status report 5he site is 100% ready for the d10 upgrade.The site that I am trying to upgrade is now on my local environment.
I tried the upgrade on my development server as well with the same result.On one of my attempts I disabled a bunch of modules
- Display Suite
- Pathauto
- Layout Builder
- Layout Custom Section Classes
- Content access
But it made no difference.
I recently upgraded another D9 site and it was dead easy.I will leave this here and continue my efforts.
///////////
This is my composer.json file before the update:
{ "name": "drupal/recommended-project", "description": "Project template for Drupal 9 projects with a relocated document root", "type": "project", "license": "GPL-2.0-or-later", "homepage": "https://www.drupal.org/project/drupal", "support": { "docs": "https://www.drupal.org/docs/user_guide/en/index.html", "chat": "https://www.drupal.org/node/314178" }, "repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" } ], "require": { "composer/installers": "^1.9", "drupal/address": "^1.11", "drupal/auto_entitylabel": "^3.0", "drupal/back_to_top": "^3.0", "drupal/backup_migrate": "^5.0", "drupal/bootstrap5": "^3.0", "drupal/conditional_fields": "^4.0@alpha", "drupal/content_access": "^2.0@alpha", "drupal/convert_bundles": "^2.0@beta", "drupal/core": "^9.5", "drupal/core-composer-scaffold": "^9.5", "drupal/core-project-message": "^9.5", "drupal/ctools": "^4.0", "drupal/devel": "^5.1", "drupal/ds": "^3.15", "drupal/easy_breadcrumb": "^2.0", "drupal/entity_usage": "^2.0@beta", "drupal/extlink": "^1.7", "drupal/field_group": "^3.4", "drupal/field_permissions": "^1.2", "drupal/filename_transliteration": "^1.1", "drupal/genpass": "^2.0@alpha", "drupal/geocoder": "^4.9", "drupal/geofield": "^1.52", "drupal/httpswww": "^2.1", "drupal/imce": "^3.0", "drupal/layout_custom_section_classes": "^1.0", "drupal/leaflet": "^10.0", "drupal/libraries": "^4.0", "drupal/linkit": "^6.0@RC", "drupal/login_emailusername": "^2.1", "drupal/masquerade": "^2.0@RC", "drupal/menu_block": "^1.10", "drupal/menu_position": "^1.0", "drupal/metatag": "^1.22", "drupal/migrate_tools": "^6.0", "drupal/migrate_upgrade": "^4.0", "drupal/obfuscate_email": "^2.0", "drupal/paragraphs": "^1.15", "drupal/paragraphs_modal_edit": "^1.1", "drupal/pathauto": "^1.11", "drupal/realname": "^2.0@beta", "drupal/simple_gmap": "3.1.x-dev@dev", "drupal/slick": "^2.7", "drupal/slick_views": "^2.7@beta", "drupal/smart_trim": "^2.0", "drupal/telephone_advanced": "^1.0", "drupal/token": "^1.11", "drupal/upgrade_status": "^4.0", "drupal/views_bulk_edit": "^2.8", "drupal/views_bulk_operations": "^4.2", "drupal/viewsreference": "^2.0@beta", "drupal/webform": "^6.2@beta", "drush/drush": "^11.5", "geocoder-php/bing-maps-provider": "^4.3" }, "conflict": { "drupal/drupal": "*" }, "minimum-stability": "stable", "prefer-stable": true, "config": { "allow-plugins": { "composer/installers": true, "drupal/core-composer-scaffold": true, "drupal/core-project-message": true, "dealerdirect/phpcodesniffer-composer-installer": true, "php-http/discovery": true }, "sort-packages": true }, "extra": { "drupal-scaffold": { "locations": { "web-root": "./" } }, "installer-paths": { "core": [ "type:drupal-core" ], "libraries/{$name}": [ "type:drupal-library" ], "modules/contrib/{$name}": [ "type:drupal-module" ], "profiles/contrib/{$name}": [ "type:drupal-profile" ], "themes/contrib/{$name}": [ "type:drupal-theme" ], "drush/Commands/contrib/{$name}": [ "type:drupal-drush" ], "modules/custom/{$name}": [ "type:drupal-custom-module" ], "profiles/custom/{$name}": [ "type:drupal-custom-profile" ], "themes/custom/{$name}": [ "type:drupal-custom-theme" ] }, "drupal-core-project-message": { "include-keys": [ "homepage", "support" ], "post-create-project-cmd-message": [ "<bg=blue;fg=white> </>", "<bg=blue;fg=white> Congratulations, youโve installed the Drupal codebase </>", "<bg=blue;fg=white> from the drupal/recommended-project template! </>", "<bg=blue;fg=white> </>", "", "<bg=yellow;fg=black>Next steps</>:", " * Install the site: https://www.drupal.org/docs/installing-drupal", " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", " * Get support: https://www.drupal.org/support", " * Get involved with the Drupal community:", " https://www.drupal.org/getting-involved", " * Remove the plugin that prints this message:", " composer remove drupal/core-project-message" ] } } }
///////////
The upgrade produced no errors.
Here is the session:meuser@mebox ost9 % chmod 777 sites/default meuser@mebox ost9 % chmod 666 sites/default/*settings.php meuser@mebox ost9 % chmod 666 sites/default/*services.yml meuser@mebox ost9 % composer require 'drupal/core-recommended:^10' 'drupal/core-composer-scaffold:^10' 'drupal/core-project-message:^10' --update-with-dependencies --no-update Info from https://repo.packagist.org: #StandWithUkraine ./composer.json has been updated meuser@mebox ost9 % composer update Loading composer repositories with package information Updating dependencies Lock file operations: 7 installs, 35 updates, 11 removals - Removing doctrine/reflection (1.2.3) - Removing laminas/laminas-escaper (2.12.0) - Removing laminas/laminas-feed (2.20.0) - Removing longwave/laminas-diactoros (2.14.2) - Removing stack/builder (v1.0.6) - Removing symfony-cmf/routing (2.3.4) - Removing symfony/debug (v4.4.44) - Removing symfony/http-client-contracts (v2.5.2) - Removing symfony/polyfill-php73 (v1.27.0) - Removing symfony/translation (v4.4.47) - Removing typo3/phar-stream-wrapper (v3.1.7) - Upgrading asm89/stack-cors (1.3.0 => v2.1.1) - Upgrading consolidation/log (2.1.1 => 3.0.0) - Upgrading consolidation/robo (4.0.2 => 4.0.6) - Upgrading consolidation/site-process (4.2.1 => 5.2.0) - Downgrading doctrine/annotations (1.14.3 => 1.13.3) - Downgrading doctrine/lexer (2.1.0 => 1.2.3) - Upgrading drupal/core (9.5.9 => 10.0.9) - Upgrading drupal/core-composer-scaffold (9.5.9 => 10.0.9) - Upgrading drupal/core-project-message (9.5.9 => 10.0.9) - Locking drupal/core-recommended (10.0.9) - Upgrading grasmash/expander (2.0.3 => 3.0.0) - Downgrading guzzlehttp/psr7 (2.5.0 => 2.4.5) - Downgrading laminas/laminas-servicemanager (3.20.0 => 3.15.0) - Downgrading laminas/laminas-text (2.10.0 => 2.9.0) - Downgrading masterminds/html5 (2.8.0 => 2.7.6) - Locking phootwork/collection (v3.2.1) - Locking phootwork/lang (v3.2.1) - Downgrading php-http/message (1.15.0 => 1.14.0) - Locking phpowermove/docblock (v4.0) - Upgrading psr/container (1.1.2 => 2.0.2) - Locking psr/event-dispatcher (1.0.0) - Downgrading psr/http-message (1.1 => 1.0.1) - Upgrading psr/log (1.1.4 => 3.0.0) - Upgrading symfony/console (v4.4.49 => v6.2.10) - Upgrading symfony/dependency-injection (v4.4.49 => v6.2.10) - Upgrading symfony/error-handler (v4.4.44 => v6.2.10) - Upgrading symfony/event-dispatcher (v4.4.44 => v6.2.8) - Upgrading symfony/event-dispatcher-contracts (v1.1.13 => v3.2.1) - Upgrading symfony/http-foundation (v4.4.49 => v6.2.10) - Upgrading symfony/http-kernel (v4.4.50 => v6.2.10) - Upgrading symfony/mime (v5.4.13 => v6.2.10) - Locking symfony/polyfill-php81 (v1.27.0) - Upgrading symfony/process (v4.4.44 => v6.2.10) - Upgrading symfony/routing (v4.4.44 => v6.2.8) - Upgrading symfony/serializer (v4.4.47 => v6.2.10) - Upgrading symfony/service-contracts (v2.5.2 => v3.2.1) - Upgrading symfony/translation-contracts (v2.5.2 => v3.2.1) - Upgrading symfony/validator (v4.4.48 => v6.2.10) - Upgrading symfony/var-dumper (v5.4.23 => v6.2.10) - Locking symfony/var-exporter (v6.2.10) - Upgrading symfony/yaml (v4.4.45 => v6.2.10) - Upgrading twig/twig (v2.15.5 => v3.5.1) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 7 installs, 35 updates, 11 removals - Removing typo3/phar-stream-wrapper (v3.1.7) - Removing symfony/translation (v4.4.47) - Removing symfony/polyfill-php73 (v1.27.0) - Removing symfony/http-client-contracts (v2.5.2) - Removing symfony/debug (v4.4.44) - Removing symfony-cmf/routing (2.3.4) - Removing stack/builder (v1.0.6) - Removing longwave/laminas-diactoros (2.14.2) - Removing laminas/laminas-feed (2.20.0) - Removing laminas/laminas-escaper (2.12.0) - Removing doctrine/reflection (1.2.3) - Upgrading drupal/core-composer-scaffold (9.5.9 => 10.0.9): Extracting archive - Upgrading drupal/core-project-message (9.5.9 => 10.0.9): Extracting archive - Upgrading psr/container (1.1.2 => 2.0.2): Extracting archive - Upgrading symfony/service-contracts (v2.5.2 => v3.2.1): Extracting archive - Upgrading symfony/console (v4.4.49 => v6.2.10): Extracting archive - Upgrading psr/log (1.1.4 => 3.0.0): Extracting archive - Upgrading consolidation/log (2.1.1 => 3.0.0): Extracting archive - Upgrading twig/twig (v2.15.5 => v3.5.1): Extracting archive - Upgrading symfony/yaml (v4.4.45 => v6.2.10): Extracting archive - Upgrading symfony/translation-contracts (v2.5.2 => v3.2.1): Extracting archive - Upgrading symfony/validator (v4.4.48 => v6.2.10): Extracting archive - Upgrading symfony/serializer (v4.4.47 => v6.2.10): Extracting archive - Upgrading symfony/routing (v4.4.44 => v6.2.8): Extracting archive - Upgrading symfony/http-foundation (v4.4.49 => v6.2.10): Extracting archive - Downgrading psr/http-message (1.1 => 1.0.1): Extracting archive - Upgrading symfony/process (v4.4.44 => v6.2.10): Extracting archive - Upgrading symfony/mime (v5.4.13 => v6.2.10): Extracting archive - Installing psr/event-dispatcher (1.0.0): Extracting archive - Upgrading symfony/event-dispatcher-contracts (v1.1.13 => v3.2.1): Extracting archive - Upgrading symfony/event-dispatcher (v4.4.44 => v6.2.8): Extracting archive - Upgrading symfony/var-dumper (v5.4.23 => v6.2.10): Extracting archive - Upgrading symfony/error-handler (v4.4.44 => v6.2.10): Extracting archive - Upgrading symfony/http-kernel (v4.4.50 => v6.2.10): Extracting archive - Installing symfony/var-exporter (v6.2.10): Extracting archive - Upgrading symfony/dependency-injection (v4.4.49 => v6.2.10): Extracting archive - Downgrading masterminds/html5 (2.8.0 => 2.7.6): Extracting archive - Downgrading guzzlehttp/psr7 (2.5.0 => 2.4.5): Extracting archive - Downgrading doctrine/lexer (2.1.0 => 1.2.3): Extracting archive - Downgrading doctrine/annotations (1.14.3 => 1.13.3): Extracting archive - Upgrading asm89/stack-cors (1.3.0 => v2.1.1): Extracting archive - Upgrading drupal/core (9.5.9 => 10.0.9): Extracting archive - Installing drupal/core-recommended (10.0.9) - Downgrading php-http/message (1.15.0 => 1.14.0): Extracting archive - Upgrading grasmash/expander (2.0.3 => 3.0.0): Extracting archive - Upgrading consolidation/site-process (4.2.1 => 5.2.0): Extracting archive - Installing symfony/polyfill-php81 (v1.27.0): Extracting archive - Installing phootwork/lang (v3.2.1): Extracting archive - Installing phootwork/collection (v3.2.1): Extracting archive - Installing phpowermove/docblock (v4.0): Extracting archive - Upgrading consolidation/robo (4.0.2 => 4.0.6): Extracting archive - Downgrading laminas/laminas-servicemanager (3.20.0 => 3.15.0): Extracting archive - Downgrading laminas/laminas-text (2.10.0 => 2.9.0): Extracting archive Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead. Generating autoload files 53 packages you are using are looking for funding. Use the `composer fund` command to find out more! Scaffolding files for drupal/core: - Copy [web-root]/.htaccess from assets/scaffold/files/htaccess - Copy [web-root]/example.gitignore from assets/scaffold/files/example.gitignore - Copy [web-root]/sites/example.settings.local.php from assets/scaffold/files/example.settings.local.php No security vulnerability advisories found meuser@mebox ost9 % drrush updb zsh: command not found: drrush meuser@mebox ost9 % drush updb ----------- -------------- --------------- ------------------------------- Module Update ID Type Description ----------- -------------- --------------- ------------------------------- user 10000 hook_update_n 10000 - Remove non-existent permissions created by migrations. ckeditor5 plugins_sett post-update Updates Text Editors using ings_export_ CKEditor 5 to sort plugin order settings by plugin key. olivero add_olivero_ post-update Sets the default primary_colo `base_primary_color` value of r Olivero's theme settings. ----------- -------------- --------------- ------------------------------- Do you wish to run the specified pending updates? (yes/no) [yes]: > yes > [notice] Update started: user_update_10000 > [notice] Update completed: user_update_10000 > [notice] Update started: ckeditor5_post_update_plugins_settings_export_order > [notice] Update completed: ckeditor5_post_update_plugins_settings_export_order > [notice] Update started: olivero_post_update_add_olivero_primary_color > [notice] Update completed: olivero_post_update_add_olivero_primary_color [success] Finished performing updates. meuser@mebox ost9 % drush cr
After the upgrade I am getting this error:
336 12/May 10:26 php Error Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_type" plugin does not exist. Valid plugin IDs for Drupal\Core\Condition\ConditionManager are: current_theme, request_pa
////////////
I have made a few attempts and the result is the same.
Here is the composer.json after the upgrade:{ "name": "drupal/recommended-project", "description": "Project template for Drupal 9 projects with a relocated document root", "type": "project", "license": "GPL-2.0-or-later", "homepage": "https://www.drupal.org/project/drupal", "support": { "docs": "https://www.drupal.org/docs/user_guide/en/index.html", "chat": "https://www.drupal.org/node/314178" }, "repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" } ], "require": { "composer/installers": "^1.9", "drupal/address": "^1.11", "drupal/auto_entitylabel": "^3.0", "drupal/back_to_top": "^3.0", "drupal/backup_migrate": "^5.0", "drupal/bootstrap5": "^3.0", "drupal/conditional_fields": "^4.0@alpha", "drupal/content_access": "^2.0@alpha", "drupal/convert_bundles": "^2.0@beta", "drupal/core-composer-scaffold": "^10", "drupal/core-project-message": "^10", "drupal/core-recommended": "^10", "drupal/ctools": "^4.0", "drupal/devel": "^5.1", "drupal/ds": "^3.15", "drupal/easy_breadcrumb": "^2.0", "drupal/entity_usage": "^2.0@beta", "drupal/extlink": "^1.7", "drupal/field_group": "^3.4", "drupal/field_permissions": "^1.2", "drupal/filename_transliteration": "^1.1", "drupal/genpass": "^2.0@alpha", "drupal/geocoder": "^4.9", "drupal/geofield": "^1.52", "drupal/httpswww": "^2.1", "drupal/imce": "^3.0", "drupal/layout_custom_section_classes": "^1.0", "drupal/leaflet": "^10.0", "drupal/libraries": "^4.0", "drupal/linkit": "^6.0@RC", "drupal/login_emailusername": "^2.1", "drupal/masquerade": "^2.0@RC", "drupal/menu_block": "^1.10", "drupal/menu_position": "^1.0", "drupal/metatag": "^1.22", "drupal/migrate_tools": "^6.0", "drupal/migrate_upgrade": "^4.0", "drupal/obfuscate_email": "^2.0", "drupal/paragraphs": "^1.15", "drupal/paragraphs_modal_edit": "^1.1", "drupal/pathauto": "^1.11", "drupal/realname": "^2.0@beta", "drupal/simple_gmap": "3.1.x-dev@dev", "drupal/slick": "^2.7", "drupal/slick_views": "^2.7@beta", "drupal/smart_trim": "^2.0", "drupal/telephone_advanced": "^1.0", "drupal/token": "^1.11", "drupal/upgrade_status": "^4.0", "drupal/views_bulk_edit": "^2.8", "drupal/views_bulk_operations": "^4.2", "drupal/viewsreference": "^2.0@beta", "drupal/webform": "^6.2@beta", "drush/drush": "^11.5", "geocoder-php/bing-maps-provider": "^4.3" }, "conflict": { "drupal/drupal": "*" }, "minimum-stability": "stable", "prefer-stable": true, "config": { "allow-plugins": { "composer/installers": true, "drupal/core-composer-scaffold": true, "drupal/core-project-message": true, "dealerdirect/phpcodesniffer-composer-installer": true, "php-http/discovery": true }, "sort-packages": true }, "extra": { "drupal-scaffold": { "locations": { "web-root": "./" } }, "installer-paths": { "core": [ "type:drupal-core" ], "libraries/{$name}": [ "type:drupal-library" ], "modules/contrib/{$name}": [ "type:drupal-module" ], "profiles/contrib/{$name}": [ "type:drupal-profile" ], "themes/contrib/{$name}": [ "type:drupal-theme" ], "drush/Commands/contrib/{$name}": [ "type:drupal-drush" ], "modules/custom/{$name}": [ "type:drupal-custom-module" ], "profiles/custom/{$name}": [ "type:drupal-custom-profile" ], "themes/custom/{$name}": [ "type:drupal-custom-theme" ] }, "drupal-core-project-message": { "include-keys": [ "homepage", "support" ], "post-create-project-cmd-message": [ "<bg=blue;fg=white> </>", "<bg=blue;fg=white> Congratulations, youโve installed the Drupal codebase </>", "<bg=blue;fg=white> from the drupal/recommended-project template! </>", "<bg=blue;fg=white> </>", "", "<bg=yellow;fg=black>Next steps</>:", " * Install the site: https://www.drupal.org/docs/installing-drupal", " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", " * Get support: https://www.drupal.org/support", " * Get involved with the Drupal community:", " https://www.drupal.org/getting-involved", " * Remove the plugin that prints this message:", " composer remove drupal/core-project-message" ] } } }
- ๐จ๐ฆCanada bbombachini London, ON
If there's anyone having this issue after upgrading to D10, I'd recommend checking this pathauto issue ๐ฌ PluginNotFoundException: The "node_type" plugin does not exist Fixed .
- ๐จ๐ดColombia sebasgd
I also had this issue after upgrading to Drupal 10, but in my case it was not a module, it was some block configs. I searched in all the config files for "node_type" and I found that some of the block configs had this:
visibility: node_type: id: node_type negate: false
I fixed it by changing the config to
visibility: 'entity_bundle:node': id: 'entity_bundle:node' negate: false
and then importing it with drush.
- ๐บ๐ธUnited States leraa
Comment #8 helped me, thanks @sebasgd!
I only needed to change the id to
id: 'entity_bundle:node'
, I did not need to change thenode_type
header. I had a similar issue and used config export
drush cex
, then researched "node_type" in config files with IDE.
In my case the asset_injector module was throwing this error:Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "node_type" plugin does not exist. Valid plugin IDs for Drupal\Core\Condition\ConditionManager are: domain, language, current_theme, request_path, user_role, webform, entity_bundle:block_content, entity_bundle:comment, entity_bundle:contact_message, entity_bundle:media, entity_bundle:menu_link_content, entity_bundle:node, entity_bundle:shortcut, entity_bundle:taxonomy_term, entity_bundle:token_custom, entity_bundle:webform_submission, entity_bundle:paragraph" at ...\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php line 53
Probably JS scripts which were referencing to node_type, which was deleted in D10 (?).
- ๐บ๐ธUnited States droath
I was able to resolve this bug using the following code, my particular use case was related to ctools:
/** * Implements hook_condition_info_alter(). */ function HOOK_condition_info_alter(array &$definitions) { if (!isset($definitions['node_type'])) { $definitions['node_type']['class'] = EntityBundle::class; } }
- ๐จ๐ฆCanada smulvih2 Canada ๐
For anyone looking for a programmatic solution to fix block configs, the code below can be used in a hook_update():
// Fix block visibility config. $config_factory = \Drupal::service('config.factory'); $block_configurations = $config_factory->listAll('block.block'); foreach ($block_configurations as $config_name) { // Load the block configuration. $config = $config_factory->getEditable($config_name); // Check for a value and update it if needed. if (is_array($config->get('visibility.node_type'))) { if ($config->get('visibility.node_type')['id'] === 'node_type') { $config->set('visibility.node_type.id', 'entity_bundle:node'); $config->save(); } } }
- ๐บ๐ธUnited States utcwebdev
@Andrew Robinson thank you for #3! Running the pathauto update hook fixed one of the many D10 stumbling blocks in my project.
- ๐ฆ๐ทArgentina lucasvm
Patch #8 worked for us, we had to edit the yaml to get it working, pathautho was the problem.
- ๐จ๐ฆCanada pub497
#10 yeah we had a bunch of pathauto configs which still had node_type. If you donโt already manage the entire site config I highly recommend doing this config export to check if there are any uses of node_type still, fix them as #9 suggests and reimport them. Especially if you use something like features module to bundle your configs.
- ๐บ๐ธUnited States rclemings
@sebasgd: It was a block problem for me too. Only difference: In my case the block config(s) had both "node_type" and "entity_bundle:node" sections under "visibility." Removing the "node_type" sections appears to have fixed it.
Because my D10 site was not coming up at all and I didn't have drush working (yet), I made that change on the old D9 site (/admin/config/development/configuration/single/export, edit, then /admin/config/development/configuration/single/import). Then I exported the two affected blocks from the config table in the D9 database, and imported them into the same table in the D10 database.
- First commit to issue fork.
- ๐ช๐ธSpain pcambra Asturies
Had the issue as #3 and the solution of pathauto_update_8108 worked like a charm, thanks!
- ๐บ๐ธUnited States cewernlund
Just popping in to say that #3 running the pathauto update fixed it for me. Thank you all!
- ๐ธ๐ชSweden thomjjames Sweden
Also ran into this, as outlined in #8 I just had to scan my config replacing instances of
node_type
forentity_bundle:node
which were all related to pathauto as well, reimported the config & problem solved. I guess doing a config export after upgrading would have the same effect. - ๐ฆ๐นAustria dv@blinker.digital
Number #3 worked and seems to be the most straight forward solution! Thanks!
- ๐ฌ๐งUnited Kingdom fonant
#8 worked nicely here, too. Thanks @sebasgd
Had the same issue, where node_type defined in block configs and block configs were in config ignore. #13 worked successfully. Thanks @smulvih2
- ๐บ๐ธUnited States jjmackow
#3 solved my issue as well. Attempting to edit any content on the site would return a 'white website error page', and an examination of the apache log gave:
Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "node_type" plugin does not exist. Valid plugin IDs for Drupal\\Core\\Condition\\ConditionManager are: condition_group, group_type, response_status, request_path, current_theme, user_role, webform, entity_bundle:block_content, entity_bundle:comment, entity_bundle:contact_message, entity_bundle:crop, entity_bundle:group_config_wrapper, entity_bundle:group_relationship, entity_bundle:group, entity_bundle:media, entity_bundle:node, entity_bundle:redirect, entity_bundle:shortcut, entity_bundle:taxonomy_term, entity_bundle:webform_submission, entity_bundle:section_association, entity_bundle:menu_link_content, entity_bundle: paragraph" at /var/www/storefront/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53, referer: http://localhost/
After running
drush eval 'include_once(DRUPAL_ROOT . "/modules/contrib/pathauto/pathauto.install"); pathauto_update_8108()'
I was able to edit content.
- ๐ซ๐ทFrance arnaud-brugnon
#3 works me too (even if i don't really unsterstand why).
Thanks a lot. - ๐ง๐ทBrazil julio_retkwa Balneรกrio Camboriรบ
#9 worked like a charm
Thank you.
- ๐บ๐ธUnited States wheelercreek
#6 -- worked for me. I tried all the others. Exporting my site config with Drush helped me find it. For me the issue was with module "Block Visibility Groups"
- ๐จ๐ฆCanada earthangelconsulting
#7 ๐ฌ The "node_type" plugin does not exist - upgrade from D9 to D10 Closed: cannot reproduce was very helpful (if you are using pathauto, see this issue: https://www.drupal.org/project/pathauto/issues/2925169 ๐ฌ PluginNotFoundException: The "node_type" plugin does not exist Fixed and try #23 ๐ฌ PluginNotFoundException: The "node_type" plugin does not exist Fixed )
- Issue was unassigned.
- ๐จ๐ดColombia Nestor_Fabian
#3 solution to problem in pathauto after upgrade site drupal 9 to drupal 10.
- ๐ฎ๐ณIndia amittgaur Chandigarh
#8 is working fine to me.
its was in config which i replaced according to #8Thank you!
- ๐ฌ๐งUnited Kingdom vitaliych
I have experienced that error as well i have found id: node_type in /core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_view.yml
also in
/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_query_param.ymlI believe that can be replaced "id: node_type" With "id: entity_bundle:node"
I have patch them
- ๐ฎ๐ณIndia nishantkumar155
Still i am facing same isse.
The website encountered an unexpected error. Please try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_type" plugin does not exist. Valid plugin IDs for Drupal\rules\Core\ConditionManager are: language, rules_data_comparison, rules_data_is_empty, rules_list_contains, rules_list_count_is, rules_entity_has_field, rules_entity_is_new, rules_entity_is_of_bundle, rules_entity_is_of_type, rules_ip_is_banned, rules_node_is_of_type, rules_node_is_promoted, rules_node_is_published, rules_node_is_sticky, rules_path_alias_exists, rules_path_has_alias, rules_text_comparison, rules_entity_field_access, rules_user_has_role, rules_user_is_blocked, current_theme, request_path, user_role, webform, entity_bundle:block_content, entity_bundle:comment, entity_bundle:contact_message, entity_bundle:crop, entity_bundle:entity_subqueue, entity_bundle:file, entity_bundle:media, entity_bundle:message, entity_bundle:node, entity_bundle:redirect, entity_bundle:shortcut, entity_bundle:taxonomy_term, entity_bundle:token_custom, entity_bundle:webform_submission, entity_bundle:menu_link_content, entity_bundle:paragraph in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php).
- Status changed to Active
5 months ago 6:17am 1 July 2024 - ๐ฎ๐ณIndia nishantkumar155
I am still facing same issue after upgrading from drupal 9 to drupal 10
- ๐บ๐ธUnited States ccarnnia
i have seen this a nuber of time. to fix it i:
1- export all the configdrush @MYSITE cex
2- navigte to config/sync directory
cd /var/www/PATH_TO_SITES/config/sync
3- look for `id: node_type`. it could be in block config, or pathautho, ...
grep -r "id: node_type" .
4- edit the files from step 3 replaceing `id: node_type` with `entity_bundle:node`
5- import the configdrush @MYSITE cim
#3 worked for me as well , solution to problem in pathauto after upgrade site drupal 9 to drupal 10.
- ๐น๐ทTurkey nazir.sharifi
I had the same issue as #3, and the pathauto_update_8108 fix worked perfectly. Thanks!