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

jec006’s picture

Yah, 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

jec006’s picture

Status: Active » Fixed
Danny Englander’s picture

Yup, that fixed it! Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.