- Issue created by @szato
- last update
over 1 year ago 57 pass, 3 fail - @szato opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 2:20pm 25 April 2023 - 🇭🇺Hungary szato
Added missing attributes:
'thumbnail_width_metadata_attribute' => 'thumbnail_width', 'thumbnail_height_metadata_attribute' => 'thumbnail_height',
MR created.
- last update
over 1 year ago 59 pass, 2 fail - last update
over 1 year ago 59 pass, 2 fail - last update
over 1 year ago 59 pass, 2 fail - last update
over 1 year ago 60 pass - 🇺🇸United States Chris Burge
Hmm.. tests pass on D9.5 but fail on D10. I don't see how that could be related to this MR, though
- 🇺🇸United States Chris Burge
@szato - Can I get steps to reproduce the warning?
Below are the steps I followed:
- Install Drupal 9.5.x (including Media Library) and oEmbed Providers 2.x-dev
- For Media settings, check 'Standalone media URL'
- Add a YouTube video (media/1)
- View https://my-site/media/1
- Check logs - no warnings
- 🇺🇸United States Chris Burge
Tests are fixed in D10.1+: 🐛 Tests Failing at HEAD for D10 Fixed
- 🇨🇦Canada bwaindwain
The PHP warnings are:
Warning: Undefined array key "thumbnail_width_metadata_attribute" in Drupal\media\Entity\Media->getThumbnailWidth() (line 285 of core/modules/media/src/Entity/Media.php).
Warning: Undefined array key "thumbnail_height_metadata_attribute" in Drupal\media\Entity\Media->getThumbnailHeight() (line 310 of core/modules/media/src/Entity/Media.php).Fix looks good to me. +1 RTBC
- last update
over 1 year ago 60 pass -
Chris Burge →
committed 13ef17ef on 2.x authored by
szato →
Issue #3356306 by szato: Missing MediaSource plugin definition...
-
Chris Burge →
committed 13ef17ef on 2.x authored by
szato →
-
Chris Burge →
committed adb80452 on 2.x
Issue #3356306 by bwaindwain: Missing MediaSource plugin definition...
-
Chris Burge →
committed adb80452 on 2.x
- Status changed to Fixed
over 1 year ago 10:53pm 11 May 2023 - 🇺🇸United States Chris Burge
That's enough info.
Drupal\media\Entity\Media
is expecting those properties to be set. The two properties were added at some point after this module was released.@bwaindwain - I missed crediting you on the original merge, so I pushed an empty commit to grant credit.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
7 months ago 4:46pm 14 May 2024 I can confirm that the changes from this commit did the trick for us on custom code