Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
Since yesterday all our videos hosted on vimeo, are no longer displaying on our site and the following notice is displaying
"Notice : Undefined index: video_id dans _video_embed_field_get_vimeo_id() (ligne 454 dans /home/xxx/www/sites/all/modules/video_embed_field/video_embed_field.handlers.inc)."
I've looked at the code inside the video_embed_field.handlers.inc file and I don't see anything
function _video_embed_field_get_vimeo_id($vimeo_data) {
try {
$video_id = $vimeo_data['video_id'];
} catch (Exception $e) {
$video_id = FALSE;
}
return $video_id;
}
Can you please help ?
Comment | File | Size | Author |
---|---|---|---|
#6 | video_embed_field-parse-id-when-banned-2750717-6.patch | 1.7 KB | joelstein |
Comments
Comment #2
Kitty77 CreditAttribution: Kitty77 commentedAnyone is having this issue ?
Comment #3
junghandy CreditAttribution: junghandy commentedI'm running into this same issue and it turned out to be Vimeo blocking requests from our IP.
Here's the message I receive back from Vimeo:
Comment #4
canardesign CreditAttribution: canardesign commentedSame problem here, sent an email to vimeo support
Comment #5
canardesign CreditAttribution: canardesign commentedHey, after 6 months, it happens again :
Sent a new request to vimeo support :(
Anyone knows why they ban people ?
Comment #6
joelstein CreditAttribution: joelstein commentedThe issue here is that if Vimeo decides to ban your IP address, you won't have access to the API or oEmbed endpoints.
However, the video ID is in the URL, so we can simply fall back to parsing the ID out with PHP in the event that are unable to get this information from Vimeo's API.
Here is a patch which uses this patch to match quite a few Vimeo URL patterns. Works like a charm!