Problem/Motivation
I begin to upgrade a site from Drupal 10 to Drupal 11 The site still is in Drupal 10, and one of the module I need to update was Video Embed Facebook. and when I update de module I get this error:
Fatal error: Declaration of Drupal\video_embed_facebook\Plugin\video_embed_field\Provider\Facebook::renderEmbedCode($width, $height, $autoplay) must be compatible with Drupal\video_embed_field\ProviderPluginBase::renderEmbedCode($width, $height, $autoplay, $title_format = null, $use_title_fallback = true) in /var/www/html/web/modules/contrib/video_embed_facebook/src/Plugin/video_embed_field/Provider/Facebook.php on line 18
the eror appear in the node where is a facebook video. The Second problem I get is in frontpage all the html desapear if I try to put that node in frontpage like content.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3589818.patch | 716 bytes | shank115 |
Comments
Comment #2
koffer commentedPosdata
I thought the page, in that node, had a Facebook video, but no, it was a YouTube video. So it doesn't matter if it has a Facebook video or not; with the module installed, it throws the error.
Comment #3
shank115 commentedTry this patch