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

Created on 18 December 2023, 11 months ago
Updated 10 January 2024, 11 months ago

Following the update to Drupal 10.2, file uploads are resulting in an AJAX error. The error log:

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

I'm not sure, but could this have something to do with the new filename sanitation?

EDIT:
Here's a stack trace:

#0 [...]/html/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition()
#1 [...]/html/core/lib/Drupal/Core/Validation/ConstraintFactory.php(21): Drupal\Core\Plugin\DefaultPluginManager->getDefinition()
#2 [...]/html/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Validation\ConstraintFactory->createInstance()
#3 [...]/html/core/lib/Drupal/Core/Validation/ConstraintManager.php(84): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#4 [...]/html/core/modules/file/src/Validation/FileValidator.php(56): Drupal\Core\Validation\ConstraintManager->create()
#5 [...]/html/core/modules/file/src/Upload/FileUploadHandler.php(243): Drupal\file\Validation\FileValidator->validate()
#6 [...]/html/core/modules/file/file.module(658): Drupal\file\Upload\FileUploadHandler->handleFileUpload()
#7 [...]/html/core/modules/file/file.module(536): file_save_upload()
#8 [...]/html/core/modules/file/file.module(1007): _file_save_upload_from_form()
#9 [...]/html/core/modules/file/src/Element/ManagedFile.php(76): file_managed_file_save_upload()
#10 [internal function]: Drupal\file\Element\ManagedFile::valueCallback()
#11 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(1266): call_user_func_array()
#12 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(1006): Drupal\Core\Form\FormBuilder->handleInputElement()
#13 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(1076): Drupal\Core\Form\FormBuilder->doBuildForm()
#14 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(1076): Drupal\Core\Form\FormBuilder->doBuildForm()
#15 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(1076): Drupal\Core\Form\FormBuilder->doBuildForm()
#16 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(1076): Drupal\Core\Form\FormBuilder->doBuildForm()
#17 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(579): Drupal\Core\Form\FormBuilder->doBuildForm()
#18 [...]/html/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#19 [...]/html/core/lib/Drupal/Core/Entity/EntityFormBuilder.php(48): Drupal\Core\Form\FormBuilder->buildForm()
#20 [...]/html/modules/contrib/webform/src/Entity/Webform.php(1257): Drupal\Core\Entity\EntityFormBuilder->getForm()
#21 [...]/html/modules/contrib/webform/src/Controller/WebformEntityController.php(77): Drupal\webform\Entity\Webform->getSubmissionForm()
#22 [internal function]: Drupal\webform\Controller\WebformEntityController->addForm()
#23 [...]/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#24 [...]/html/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#25 [...]/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#26 [...]/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#27 [...]/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#28 [...]/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#29 [...]/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#30 [...]/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#31 [...]/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#32 [...]/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#33 [...]/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#34 [...]/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#35 [...]/html/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#36 [...]/html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#37 [...]/html/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#38 [...]/html/index.php(19): Drupal\Core\DrupalKernel->handle()
#39 {main}
๐Ÿ› Bug report
Status

Closed: outdated

Version

6.2

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States greatmatter

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