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.
I just upgraded to 7.x-2.0-beta3 from the previous 2.x version and am now getting this error on node pages where there is no video: (I have the field set to not required.)
Notice: Undefined variable: delta in video_embed_field_field_formatter_view() (line 385 of /sites/all/modules/video_embed_field/video_embed_field.field.inc).
Notice: Undefined variable: delta in video_embed_field_field_formatter_view() (line 389 of /sites/all/modules/video_embed_field/video_embed_field.field.inc).
If I input a youtube video URL and save the node, it's fine the error goes away. It looks like line 385 of video_embed_field.field.inc has a comment:
//The if/else is so that it doesn't show an error in case there's no suffix.
... so I am wondering if that's related to my issue.
Comments
Comment #1
jec006 CreditAttribution: jec006 commentedYah, it looks like that stuff should be inside of the loop instead of out :/
Bad patch commit. Sorry - not doing so hot today apparently. Committed a fix and updating to have a 7.x-2.0-beta4 release
Comment #2
jec006 CreditAttribution: jec006 commentedComment #3
Danny EnglanderYup, that fixed it! Thanks!