Problem/Motivation // Steps to reproduce

After I upgraded from version 2.0.2 to 2.0.3, I noticed that when there is a broken .mp4 link provided, this WSOD error comes up:

The website encountered an unexpected error. Try again later.

Error: Call to a member function getPath() on null in Drupal\video_embed_html5\Plugin\video_embed_field\Provider\Html5->renderThumbnail() (line 138 of modules/contrib/video_embed_html5/src/Plugin/video_embed_field/Provider/Html5.php). 

Am on Drupal 10.6.7 with PHP 8.4.

Comments

fizcs3 created an issue. See original summary.

witcher_’s picture

Please try applying the fix from #3586297.

fizcs3’s picture

Status: Active » Closed (duplicate)

Ok thank you @witcher_
I just tried that fix and it works!

Looking closer, I do see that actually it is a coincidence that the .mp4 link was broken on my end and came up with that error. The error really was due to the use of the "Thumbnail" formatter, like the other task describes. I am going to close this task (duplicate) and list this as a related issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.