Closed (fixed)
Project:
YouTube Field
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2015 at 10:06 UTC
Updated:
16 Mar 2015 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
guschilds commentedwwwjaylee,
My apologies. I believe this can be fixed in one of two ways:
Let me know how it goes. Thanks!
Comment #2
jay.lee.bio commentedGuschilds, thanks for your quick reply. Here's what I did:
1) I initially went to my display settings (which in my case is a View), but didn't save anything.
2) I decided to apply the patch instead.
3) After applying it, I played a video.
4) I went to the log and noticed that step #3 no longer causes the two original error messages, but that step #1 causes new similar error messages:
Notice: Undefined index: showinfo in youtube_colorbox_thumbnail_field_formatter_settings() (line 99 of /home/mysite/public_html/sites/all/modules/youtube/modules/youtube_colorbox/youtube_colorbox.module).
Notice: Undefined index: controls in youtube_colorbox_thumbnail_field_formatter_settings() (line 105 of /home/mysite/public_html/sites/all/modules/youtube/modules/youtube_colorbox/youtube_colorbox.module).
Notice: Undefined index: autohide in youtube_colorbox_thumbnail_field_formatter_settings() (line 111 of /home/mysite/public_html/sites/all/modules/youtube/modules/youtube_colorbox/youtube_colorbox.module).
Notice: Undefined index: iv_load_policy in youtube_colorbox_thumbnail_field_formatter_settings() (line 117 of /home/mysite/public_html/sites/all/modules/youtube/modules/youtube_colorbox/youtube_colorbox.module).
5) So I went back to step #1 and this time saved settings.
6) Finally, I went back to steps #1 & #3 and noticed that I no longer get any error messages whatsoever.
In summary, correct me if I'm wrong but I think everyone has to go through BOTH ways that you described, as each method solves its own set of problems. Whatever the case is, I'm happy now. :)
Comment #3
jay.lee.bio commentedComment #5
guschilds commentedThanks for your quick response and attention to detail as well.
Both sets of warnings are resolved when saving the display settings for that field. Both are situations when the code is looking for the setting that has not yet been saved. This is only an issue when updating the module and not when installing from scratch. I should have been more defensive with my code and tested the module update more thoroughly. I've committed the patch from #1 to prevent anyone from experiencing these warnings when updating to future releases.
For anyone having these issues while linking a YouTube thumbnail to a colorbox:
This should prevent the errors from appearing on pages that display the thumbnail and/or its display settings.
Comment #6
joneldesouza commented#5 worked ! thanks !!