Get error: The "BookOutline" plugin does not exist.

Created on 22 May 2024, 7 months ago
Updated 3 September 2024, 4 months ago

Problem/Motivation

I receive this error when I try to save a node after creating or editing.

Steps to reproduce

Installed book module, then try to edit a document. On saving the document I get the error.

Log output:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "BookOutline" plugin does not exist. Valid plugin IDs for Drupal\Core\Validation\ConstraintManager are: Callback, Blank, NotBlank, Email, Choice, BlockContentEntityChanged, SourceEditingPreventSelfXssConstraint, CKEditor5ToolbarItem, CKEditor5MediaAndFilterSettingsInSync, CKEditor5FundamentalCompatibility, CKEditor5Element, SourceEditingRedundantTags, StyleSensibleElement, CKEditor5ToolbarItemDependencyConstraint, CKEditor5ToolbarItemConditionsMet, CKEditor5EnabledConfigurablePlugins, UniqueLabelInList, CommentName, CropTypeMachineNameValidation, CropTypeAspectRatioValidation, DateTimeFormat, ValidDynamicReference, FileSizeLimit, FileExtensionSecure, FileUriUnique, FileImageDimensions, FileNameLength, FileExtension, FileIsImage, FileValidation, LinkType, LinkNotExistingInternal, LinkAccess, LinkExternalProtocols, oembed_resource, MenuTreeHierarchy, MenuSettings, PathAlias, RedirectSourceLinkType, TaxonomyHierarchy, ProtectedUserField, UserNameUnique, UserName, UserMailUnique, UserMailRequired, Count, ComplexData, ValidKeys, UniqueField, Null, Uuid, PrimitiveType, Regex, Range, AllowedValues, NotNull, Length, UniquePathAlias, ValidPath, ConfigExists, RequiredConfigDependencies, ExtensionExists, ExtensionName, PluginExists, EntityType, Bundle, EntityUntranslatableFields, EntityHasField, ReferenceAccess, EntityChanged, ImmutableProperties, ValidReference in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

#0 /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition(Array, 'BookOutline', true)
#1 /var/www/html/web/core/lib/Drupal/Core/Validation/ConstraintFactory.php(21): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('BookOutline')
#2 /var/www/html/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Validation\ConstraintFactory->createInstance('BookOutline', Array)
#3 /var/www/html/web/core/lib/Drupal/Core/Validation/ConstraintManager.php(84): Drupal\Component\Plugin\PluginManagerBase->createInstance('BookOutline', Array)
#4 /var/www/html/web/core/lib/Drupal/Core/TypedData/TypedData.php(123): Drupal\Core\Validation\ConstraintManager->create('BookOutline', Array)
#5 /var/www/html/web/core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php(45): Drupal\Core\TypedData\TypedData->getConstraints()
#6 /var/www/html/web/core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php(38): Drupal\Core\TypedData\Validation\TypedDataMetadata->getConstraints()
#7 /var/www/html/web/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(152): Drupal\Core\TypedData\Validation\TypedDataMetadata->findConstraints('Default')
#8 /var/www/html/web/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(106): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object(Drupal\Core\Entity\Plugin\DataType\EntityAdapter), NULL, true)
#9 /var/www/html/web/core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php(93): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object(Drupal\Core\Entity\Plugin\DataType\EntityAdapter), NULL, NULL)
#10 /var/www/html/web/core/lib/Drupal/Core/TypedData/TypedData.php(132): Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object(Drupal\Core\Entity\Plugin\DataType\EntityAdapter))
#11 /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php(518): Drupal\Core\TypedData\TypedData->validate()
#12 /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityForm.php(188): Drupal\Core\Entity\ContentEntityBase->validate()
#13 [internal function]: Drupal\Core\Entity\ContentEntityForm->validateForm(Array, Object(Drupal\Core\Form\FormState))
#14 /var/www/html/web/core/lib/Drupal/Core/Form/FormValidator.php(82): call_user_func_array(Array, Array)
#15 /var/www/html/web/core/lib/Drupal/Core/Form/FormValidator.php(275): Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object(Drupal\Core\Form\FormState))
#16 /var/www/html/web/core/lib/Drupal/Core/Form/FormValidator.php(118): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState), 'node_page_form')
#17 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(593): Drupal\Core\Form\FormValidator->validateForm('node_page_form', Array, Object(Drupal\Core\Form\FormState))
#18 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm('node_page_form', Array, Object(Drupal\Core\Form\FormState))
#19 /var/www/html/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState))
#20 /var/www/html/web/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#21 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#22 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#23 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#24 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#25 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#26 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#27 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#28 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /var/www/html/web/modules/contrib/cleantalk/src/EventSubscriber/BootSubscriber.php(193): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\cleantalk\EventSubscriber\BootSubscriber->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#36 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#37 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#38 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#39 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#40 {main}

πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adrianm6254

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

Merge Requests

Comments & Activities

  • Issue created by @adrianm6254
  • πŸ‡ΊπŸ‡ΈUnited States adrianm6254
  • πŸ‡ΊπŸ‡ΈUnited States adrianm6254
  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    Can confirm also seeing the same

    1. Drupal 10.2.6
    2. Book v1 pulled in via Composer: composer require 'drupal/book-book:^1.0'
    3. Add a new book node

    = same error in the OP.

  • Status changed to Needs review 7 months ago
  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris
  • Status changed to Closed: won't fix 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    So this will be included in 10.3 which will be released soon so this should go away.

    Started a 2.0.x branch which will be 10.3 and up (11 included)

  • πŸ‡«πŸ‡·France jppo

    Hello,
    I get the same kind of error with 10.2.6 :
    [Tue Sep 03 16:07:48.240838 2024] [php:notice] [pid 285366:tid 285366] [client 192.168.2.2:56276] Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "BookOutline" plugin does not exist. Valid plugin IDs for Drupal\\Core\\Validation\\ConstraintManager are: Callback, Blank, NotBlank, Email, Choice, BlockContentEntityChanged, UniqueLabelInList, SourceEditingRedundantTags, CKEditor5Element, CKEditor5EnabledConfigurablePlugins, StyleSensibleElement, CKEditor5FundamentalCompatibility, CKEditor5MediaAndFilterSettingsInSync, CKEditor5ToolbarItemDependencyConstraint, SourceEditingPreventSelfXssConstraint, CKEditor5ToolbarItem, CKEditor5ToolbarItemConditionsMet, CommentName, DateTimeFormat, FileUriUnique, FileImageDimensions, FileSizeLimit, FileExtension, FileValidation, FileIsImage, FileExtensionSecure, FileNameLength, LinkExternalProtocols, LinkNotExistingInternal, LinkType, LinkAccess, MenuTreeHierarchy, MenuSettings, PathAlias, TaxonomyHierarchy, UserMailRequired, UserNameUnique, UserMailUnique, ProtectedUserField, UserName, PluginExists, ConfigExists, RequiredConfigDependencies, UniquePathAlias, ValidPath, ValidKeys, Uuid, AllowedValues, Range, Null, Count, NotNull, ComplexData, Length, Regex, PrimitiveType, UniqueField, ExtensionName, ExtensionExists, ImmutableProperties, EntityType, ValidReference, Bundle, ReferenceAccess, EntityUntranslatableFields, EntityChanged, EntityHasField" at /var/www/performance/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53, referer: https://performance.izzop.com/node/273/edit

    What can I do to get rid of that error as I can't update any page.

    Regards
    JP P

Production build 0.71.5 2024