Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Errors are shown when adding media via Media Library and the thumbnails are not computed for providers that provide them. There are some missing definition attributes. See \Drupal\media\Annotation\MediaSource
Steps to reproduce
Add media via media library (may need to add patch from #3228501: Unable to add new oembed media from Media Library dialog.). See errors in the dialog.
Proposed resolution
Add missing definition attributes.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | oembed_providers-missing_definition_attributes-3228512-2.patch | 532 bytes | ChrisSnyder |
OembedProviderMediaMissingDefinitionAttributes.png | 371.7 KB | ChrisSnyder |
Comments
Comment #2
ChrisSnyderThis patch adds the missing attributes that are not optional according to
\Drupal\media\Annotation\MediaSource
.Comment #3
ChrisSnyderComment #5
Chris Burge CreditAttribution: Chris Burge at University of Nebraska commentedI'm able to confirm this bug through manual testing. Without the 'default_name_metadata_attribute' attribute, no name is assigned to the media entity on creation. Without the 'thumbnail_uri_metadata_attribute' attribute, no thumbnail is generated on media entity on creation. These are simply missing definition attributes. I don't think we need test coverage in the oEmbed Providers module.