Problem/Motivation
The latest stable 2.3.3 version does not work with D11, with the extension validator was deprecated, so I need to switch to 2.3.x-dev to use new DeprecationHelper code.
When uploading an SVG file, there is an error that prevents svg upload:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "svg_image_field_validate_mime_type" plugin does not exist. Valid plugin IDs for Drupal\Core\Validation\ConstraintManager are: Callback, Blank, NotBlank, Email, Choice, Image, BlockContentEntityChanged, SourceEditingPreventSelfXssConstraint, CKEditor5FundamentalCompatibility, UniqueLabelInList, CKEditor5Element, CKEditor5ToolbarItemConditionsMet, CKEditor5EnabledConfigurablePlugins, SourceEditingRedundantTags, CKEditor5ToolbarItem, CKEditor5MediaAndFilterSettingsInSync, StyleSensibleElement, CKEditor5ToolbarItemDependencyConstraint, CommentName, DateTimeFormat, FileIsImage, FileImageDimensions, FileSizeLimit, FileUriUnique, FileValidation, FileExtension, FileExtensionSecure, FileNameLength, jsonapi_extras__duplicate_field, LinkNotExistingInternal, LinkAccess, LinkExternalProtocols, LinkType, MenuTreeHierarchy, MenuSettings, PathAlias, TaxonomyHierarchy, Ip, UserName, ProtectedUserField, UserMailRequired, UserNameUnique, UserMailUnique, ValidPath, UniquePathAlias, ExtensionName, ExtensionExists, Count, FullyValidatable, UniqueField, Length, PrimitiveType, NotNull, Uuid, CountryCode, Null, ComplexData, AllowedValues, ValidKeys, Range, Regex, EntityBundleExists, ConfigExists, RequiredConfigDependencies, LangcodeRequiredIfTranslatableValues, PluginExists, ValidReference, EntityUntranslatableFields, Bundle, EntityHasField, EntityChanged, EntityType, ImmutableProperties, ReferenceAccess in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /home/ubuntu/civil/drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Steps to reproduce
- Drupal version: 11.0.8
- SVG Image Field version: latest 2.3.x-dev
Just try to upload an SVG file in a node field. Error 500 occures. Looked at the Recent Log Messages for error description.
Proposed resolution
There may be due to the change of validation plugins in Drupal 11.
Remaining tasks
User interface changes
API changes
Data model changes