Problem/Motivation

Media Entity Twitter 2.5 removes the 'TweetEmbedCode' constraint plugin in favor of using core's oEmbed API (see #3155001: Use twitter API in TweetVisibleConstraintValidator). lightning_media_twitter relies on the 'TweetEmbedCode' constraint, resulting in an ajax error when you attempt to create a twitter embed with a tweet's URL in the AddByUrlForm:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "TweetEmbedCode" plugin does not exist. Valid plugin IDs for Drupal\Core\Validation\ConstraintManager are: Callback, Blank, NotBlank, Email, ModerationState, DateTimeFormat, QueueSize, FileValidation, FileUriUnique, LinkNotExistingInternal, LinkAccess, LinkExternalProtocols, LinkType, oembed_resource, InstagramEmbedCode, MenuSettings, PathAlias, RedirectSourceLinkType, TaxonomyHierarchy, UserMailUnique, UserName, UserMailRequired, ProtectedUserField, UserNameUnique, VideoEmbedValidation, MenuTreeHierarchy, EntityType, ValidReference, EntityChanged, ReferenceAccess, EntityUntranslatableFields, Bundle, EntityHasField, UniquePathAlias, ValidPath, Range, AllowedValues, PrimitiveType, Null, Length, UniqueField, ComplexData, Regex, Count, Uuid, NotNull in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php). 
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('TweetEmbedCode') (Line: 16)

Comments

justcaldwell created an issue. See original summary.

kaszarobert’s picture

The problem occurs when using the media Bulk upload form, too. Downgrading media_entity_twitter to 2.4 seems to work.

  • phenaproxima committed 5db2af2 on 8.x-3.x
    Issue #3191500: Media Entity Twitter 2.5 breaks AddByUrlForm for Twitter...

  • phenaproxima committed 3afe20f on 8.x-4.x
    Issue #3191500: Media Entity Twitter 2.5 breaks AddByUrlForm for Twitter...
phenaproxima’s picture

Status: Active » Fixed

Fixed! I will roll hotfix releases today.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.