[node.latest_version_tab] Plugin doesn't exists error

Created on 12 August 2020, over 4 years ago
Updated 22 October 2023, about 1 year ago

Problem/Motivation

I am facing site down issues after moving from drupal 8.8.8 to 8.9.2

Below error is logged.
Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "content_moderation.workflows:node.latest_version_tab" plugin does not exist. Valid plugin IDs ...

For me site starts working after flushing cache. Are there any content_moderation or content_translation module related known bug which can throw 503 error after moving from Drupal 8.8 to 8.9 ?

🐛 Bug report
Status

Needs work

Version

10.1

Component
Content moderation 

Last updated 1 day ago

Created by

🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • 🇺🇸United States Poindexterous

    I've got the same issue with a drupal 10 site and I can't quite pin this down- these random WSODs are driving me nuts. This error was logged for a page where there was no "latest version". While we do have moderation and workflows enabled- the particular page where this error was logged did not have an unpublished revision at the time. So I'm not sure why the latest_version_tab plugin was needed for this page in question. Is it possible that this might be ab issue with the local task manager or twig cache? here's a call stack:

    a:6:{s:5:"%type";s:57:"Drupal\Component\Plugin\Exception\PluginNotFoundException";s:8:"@message";s:10381:"The "content_moderation.workflows:node.latest_version_tab" plugin does not exist. Valid plugin IDs for Drupal\Core\Menu\LocalTaskManager are: entity.block.edit_form, block.admin_display, block.admin_display_theme:claro, block.admin_display_theme:themag, block.admin_display_theme:themag_st, entity.block_content.collection, entity.block_content.canonical, entity.block_content.delete_form, entity.block_content_type.edit_form, captcha_settings, captcha_examples, captcha_points.list, config.sync, config.import, config.export, config.export_full, config.import_full, config.export_single, config.import_single, entity.config_split.canonical, entity.config_split.edit_form, entity.config_split.delete_form, entity.config_split.activate, entity.config_split.deactivate, entity.config_split.import, entity.config_split.export, entity.config_split.collection, content_moderation.workflows:content_moderation.moderated_content, content_moderation.content, dblog.view_logs, dblog.clear_logs, diff.general_settings, diff.fields_list, entity.embed_button.collection, embed.settings, encrypt.list_tab, encrypt.settings_tab, entity.entity_browser.edit_form, entity.entity_browser.edit_form_overview, entity.entity_browser.edit_widgets, entity.entity_browser.delete_form, entityqueue.entities:entity.block_content.entityqueue, entityqueue.entities:entity.config_split.entityqueue, entityqueue.entities:entity.entity_subqueue.entityqueue, entityqueue.entities:entity.media.entityqueue, entityqueue.entities:entity.menu_link_content.entityqueue, entityqueue.entities:entity.node.entityqueue, entityqueue.entities:entity.poll.entityqueue, entityqueue.entities:entity.redirect.entityqueue, entityqueue.entities:entity.shortcut.entityqueue, entityqueue.entities:entity.taxonomy_term.entityqueue, entityqueue.entities:entity.user.entityqueue, entity.entity_subqueue.canonical, entity.entity_subqueue.delete_form, environment_indicator.settings.tab, environment_indicator.collection.tab, entity.field_storage_config.collection, field_ui.fields:overview_block_content, field_ui.fields:form_display_overview_block_content, field_ui.fields:display_overview_block_content, field_ui.fields:field_edit_block_content, field_ui.fields:field_storage_block_content, field_ui.fields:field_form_display_default_block_content, field_ui.fields:field_display_default_block_content, field_ui.fields:field_display_full_block_content, field_ui.fields:field_display_token_block_content, field_ui.fields:overview_entity_subqueue, field_ui.fields:form_display_overview_entity_subqueue, field_ui.fields:display_overview_entity_subqueue, field_ui.fields:field_edit_entity_subqueue, field_ui.fields:field_storage_entity_subqueue, field_ui.fields:field_form_display_default_entity_subqueue, field_ui.fields:field_display_default_entity_subqueue, field_ui.fields:overview_media, field_ui.fields:form_display_overview_media, field_ui.fields:display_overview_media, field_ui.fields:field_edit_media, field_ui.fields:field_storage_media, field_ui.fields:field_form_display_default_media, field_ui.fields:field_display_default_media, field_ui.fields:field_form_display_inline_media, field_ui.fields:field_form_display_media_library_media, field_ui.fields:field_display_compact_preview_media, field_ui.fields:field_display_full_media, field_ui.fields:field_display_gallery_grid_media, field_ui.fields:field_display_media_library_media, field_ui.fields:field_display_paragraph_preview_media, field_ui.fields:field_display_slick_media, field_ui.fields:field_display_token_media, field_ui.fields:overview_node, field_ui.fields:form_display_overview_node, field_ui.fields:display_overview_node, field_ui.fields:field_edit_node, field_ui.fields:field_storage_node, field_ui.fields:field_form_display_default_node, field_ui.fields:field_display_default_node, field_ui.fields:field_display_diff_node, field_ui.fields:field_display_full_node, field_ui.fields:field_display_large_compact_teaser_node, field_ui.fields:field_display_large_teaser_card_node, field_ui.fields:field_display_medium_card_with_square_image_node, field_ui.fields:field_display_medium_compact_teaser_node, field_ui.fields:field_display_medium_teaser_card_node, field_ui.fields:field_display_medium_teaser_card_with_teaser_text_node, field_ui.fields:field_display_medium_teaser_item_node, field_ui.fields:field_display_rss_node, field_ui.fields:field_display_search_index_node, field_ui.fields:field_display_search_result_node, field_ui.fields:field_display_small_compact_teaser_node, field_ui.fields:field_display_small_teaser_card_node, field_ui.fields:field_display_small_teaser_item_node, field_ui.fields:field_display_teaser_node, field_ui.fields:field_display_tiny_teaser_item_node, field_ui.fields:field_display_token_node, field_ui.fields:overview_poll, field_ui.fields:form_display_overview_poll, field_ui.fields:display_overview_poll, field_ui.fields:field_edit_poll, field_ui.fields:field_storage_poll, field_ui.fields:field_form_display_default_poll, field_ui.fields:field_display_default_poll, field_ui.fields:field_display_teaser_poll, field_ui.fields:overview_taxonomy_term, field_ui.fields:form_display_overview_taxonomy_term, field_ui.fields:display_overview_taxonomy_term, field_ui.fields:field_edit_taxonomy_term, field_ui.fields:field_storage_taxonomy_term, field_ui.fields:field_form_display_default_taxonomy_term, field_ui.fields:field_display_default_taxonomy_term, field_ui.fields:field_display_full_taxonomy_term, field_ui.fields:field_display_token_taxonomy_term, field_ui.fields:overview_user, field_ui.fields:form_display_overview_user, field_ui.fields:display_overview_user, field_ui.fields:field_edit_user, field_ui.fields:field_storage_user, field_ui.fields:field_form_display_default_user, field_ui.fields:field_display_default_user, field_ui.fields:field_form_display_register_user, field_ui.fields:field_display_author_info_user, field_ui.fields:field_display_compact_user, field_ui.fields:field_display_full_user, field_ui.fields:field_display_token_user, field_ui.fields:overview_paragraph, field_ui.fields:form_display_overview_paragraph, field_ui.fields:display_overview_paragraph, field_ui.fields:field_edit_paragraph, field_ui.fields:field_storage_paragraph, field_ui.fields:field_form_display_default_paragraph, field_ui.fields:field_display_default_paragraph, field_ui.fields:field_display_mg_compact_paragraph, field_ui.fields:field_display_preview_paragraph, field_ui.fields:field_display_token_paragraph, entity.entity_view_mode.edit_form, entity.entity_form_mode.edit_form, entity.entity_view_mode.collection, entity.entity_form_mode.collection, entity.filter_format.edit_form_tab, filter.admin_overview, google_analytics.admin_settings_form_tab, google_tag.default_tag_tab, google_tag.settings_form_tab, google_tag.container_list_tab, entity.image_style.edit_form, entity.image_style.collection, jm_cache.cc_open_modal, entity.key_config_override.collection, media.tasks:entity.media.canonical, media.tasks:entity.media.delete_form, entity.media_type.edit_form, entity.media_type.collection, entity.media.collection, media_directories_ui.media_directories_overview.tab, media_library.table, media_library.grid, entity.menu.view_modes_settings, entity.menu.view_modes_settings.default, entity.menu_link_content.canonical, entity.menu.edit_form, entity.menu.collection, metatag_defaults, metatag.settings, entity.node.canonical, entity.node.edit_form, entity.node.delete_form, entity.node.version_history, entity.node_type.edit_form, entity.node_type.collection, entity.path_alias.collection, entity.poll.canonical, entity.poll.edit_form, entity.poll.delete_form, poll.poll_overview, poll.settings, preview_link.entity_links:block_content.preview_link_generate, preview_link.entity_links:entity_subqueue.preview_link_generate, preview_link.entity_links:media.preview_link_generate, preview_link.entity_links:menu_link_content.preview_link_generate, preview_link.entity_links:node.preview_link_generate, preview_link.entity_links:taxonomy_term.preview_link_generate, recaptcha.admin_settings_form_tab, redirect.list, redirect.settings, redirect_404.fix_404, entity.responsive_image_style.edit_form, samlauth.configuration, search.plugins:node_search, shortcut.set_switch, entity.shortcut_set.customize_form, entity.shortcut_set.edit_form, entity.shortcut.canonical, simple_sitemap.sitemaps, simple_sitemap.status, simple_sitemap.types, simple_sitemap.settings, simple_sitemap.inclusion, simple_sitemap.entities, simple_sitemap.custom, entity.slick.collection, entity.slick.edit_form, slick.settings, structure_sync.general, structure_sync.taxonomies, structure_sync.blocks, structure_sync.menu, system.rss_feeds_settings_tab, system.site_maintenance_mode_tab, system.site_information_settings_tab, system.themes_page, system.theme_settings, system.theme_settings_global, system.theme_settings_theme:claro, system.theme_settings_theme:themag, system.theme_settings_theme:themag_st, system.modules_list, system.modules_uninstall, system.admin, system.admin_index, entity.date_format.collection, entity.date_format.edit_form, entity.version_history:block_content.version_history, system.admin_content, system.performance_settings, entity.taxonomy_term.canonical, entity.taxonomy_term.edit_form, entity.taxonomy_term.delete_form, entity.taxonomy_vocabulary.overview_form, entity.taxonomy_vocabulary.edit_form, update.status, update.settings, update.report_update, update.module_update, update.theme_update, entity.user_role.edit_form, entity.user_role.edit_permissions_form, user.account_settings_tab, user.register, user.pass, user.login, entity.user.canonical, entity.user.edit_form, entity.user.collection, user.admin_permissions, entity.bundle.permission_form:permissions_block_content_type, entity.bundle.permission_form:permissions_media_type, entity.bundle.permission_form:permissions_node_type, entity.bundle.permission_form:permissions_taxonomy_vocabulary, entity.user_role.collection, user.role.settings, views_ui.settings_tab, views_ui.settings_basic_tab, views_ui.settings_advanced_tab, views_ui.list_tab, views_ui.reports_fields, entity.view.edit_form, entity.view.edit_display_form, pathauto.patterns.form, pathauto.settings.form, pathauto.bulk.update.form, pathauto.admin.delete, views_view:view.files.page_1, views_view:view.samlauth_map.page, entity.paragraphs_type.edit_form, entity.paragraphs_type.collection";s:9:"%function";s:58:"Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition()";s:5:"%file";s:83:"/var/www/html/docroot/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php";s:5:"%line";i:53;s:17:"@backtrace_string";s:7050:"#0 /var/www/html/docroot/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition()
    #1 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(16): Drupal\Core\Plugin\DefaultPluginManager->getDefinition()
    #2 /var/www/html/docroot/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
    #3 /var/www/html/docroot/core/lib/Drupal/Core/Menu/LocalTaskManager.php(263): Drupal\Component\Plugin\PluginManagerBase->createInstance()
    #4 /var/www/html/docroot/core/lib/Drupal/Core/Menu/LocalTaskManager.php(290): Drupal\Core\Menu\LocalTaskManager->getLocalTasksForRoute()
    #5 /var/www/html/docroot/core/lib/Drupal/Core/Menu/LocalTaskManager.php(358): Drupal\Core\Menu\LocalTaskManager->getTasksBuild()
    #6 /var/www/html/docroot/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php(95): Drupal\Core\Menu\LocalTaskManager->getLocalTasks()
    #7 /var/www/html/docroot/core/modules/block/src/BlockViewBuilder.php(171): Drupal\Core\Menu\Plugin\Block\LocalTasksBlock->build()
    #8 [internal function]: Drupal\block\BlockViewBuilder::preRender()
    #9 /var/www/html/docroot/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(111): call_user_func_array()
    #10 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(797): Drupal\Core\Render\Renderer->doTrustedCallback()
    #11 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(386): Drupal\Core\Render\Renderer->doCallback()
    #12 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(458): Drupal\Core\Render\Renderer->doRender()
    #13 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
    #14 /var/www/html/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(474): Drupal\Core\Render\Renderer->render()
    #15 /tmp/someenvprod/php_storage/twig/refs/tags/pipelines-build-version/1.0.4/sitename/twig/651c79a5091cd_page--layout-builder-enab_cWANDOXnBZPVjkUKgA-Bshhuj/bJlK2EuJOpNYOG693jgXH4DBBV1LqZbpzLb088q8lds.php(54): Drupal\Core\Template\TwigExtension->escapeFilter()
    #16 /var/www/html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_618eeaf42370d16879ebe70a43b62376->doDisplay()
    #17 /var/www/html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
    #18 /var/www/html/vendor/twig/twig/src/Template.php(379): Twig\Template->display()
    #19 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(40): Twig\Template->render()
    #20 /var/www/html/docroot/core/themes/engines/twig/twig.engine(53): Twig\TemplateWrapper->render()
    #21 /var/www/html/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(372): twig_render_template()
    #22 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(445): Drupal\Core\Theme\ThemeManager->render()
    #23 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
    #24 /var/www/html/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(474): Drupal\Core\Render\Renderer->render()
    #25 /tmp/someenvprod/php_storage/twig/refs/tags/pipelines-build-version/1.0.4/sitename/twig/651c79a5091cd_html.html.twig_7zwbrb3i83LMTfxPRAN_sdvFP/ijhtjG8FEH8x8Z_h3LQErV4QMb2bPGgyr4MUlVV3lx8.php(162): Drupal\Core\Template\TwigExtension->escapeFilter()
    #26 /var/www/html/vendor/twig/twig/src/Template.php(171): __TwigTemplate_e8de942a1490ca3511adedde44242f4b->block_body()
    #27 /tmp/someenvprod/php_storage/twig/refs/tags/pipelines-build-version/1.0.4/sitename/twig/651c79a5091cd_html.html.twig_7zwbrb3i83LMTfxPRAN_sdvFP/ijhtjG8FEH8x8Z_h3LQErV4QMb2bPGgyr4MUlVV3lx8.php(131): Twig\Template->displayBlock()
    #28 /var/www/html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_e8de942a1490ca3511adedde44242f4b->doDisplay()
    #29 /var/www/html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
    #30 /var/www/html/vendor/twig/twig/src/Template.php(379): Twig\Template->display()
    #31 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(40): Twig\Template->render()
    #32 /var/www/html/docroot/core/themes/engines/twig/twig.engine(53): Twig\TemplateWrapper->render()
    #33 /var/www/html/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(372): twig_render_template()
    #34 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(445): Drupal\Core\Theme\ThemeManager->render()
    #35 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
    #36 /var/www/html/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(158): Drupal\Core\Render\Renderer->render()
    #37 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(592): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
    #38 /var/www/html/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(159): Drupal\Core\Render\Renderer->executeInRenderContext()
    #39 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
    #40 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
    #41 /var/www/html/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
    #42 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(187): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
    #43 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
    #44 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
    #45 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
    #46 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
    #47 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
    #48 /var/www/html/docroot/modules/contrib/shield/src/ShieldMiddleware.php(270): Drupal\page_cache\StackMiddleware\PageCache->handle()
    #49 /var/www/html/docroot/modules/contrib/shield/src/ShieldMiddleware.php(137): Drupal\shield\ShieldMiddleware->bypass()
    #50 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle()
    #51 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
    #52 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
    #53 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
    #54 /var/www/html/docroot/index.php(19): Drupal\Core\DrupalKernel->handle()
    #55 {main}";}
  • 🇺🇸United States Poindexterous

    This might be related to https://www.drupal.org/project/drupal/issues/3056633 💬 Drupal 10 updating issue - Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist Needs work , it's a drupal 9 to drupal 10 upgrade issue where "plugin not found" exceptions are triggered, there are various causes so it's more like a megathread for a common symptom that might have numerous causes.

  • Status changed to Active about 1 year ago
  • Status changed to Needs review about 1 year ago
  • last update about 1 year ago
    29,658 pass
  • 🇮🇳India zeeshan_khan

    I have added a check to confirm only check latest_version_tab if its available.

  • Status changed to Needs work about 1 year ago
  • 🇺🇸United States smustgrave

    Will need an issue summary update and test case.

  • 🇺🇸United States Poindexterous

    Sadly this issue keeps happening even with that patch. Does anyone have some deeper knowledge on the plugin discovery process (I don't have a lot of knowledge in that area)? I wonder if the "plugin not found" part is correct, because the "latest version tab" is NOT supposed to be rendered on the pages we're seeing this error. So why does it expect to find the plugin when attempting to render the local task block? Then there's the permission issue where it's trying to render the local task block with the "latest version tab" to anonymous users, who don't have permission to see it.

Production build 0.71.5 2024