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.
If i installed the module and test with a youtube Url the page say follow error.
Notice: Undefined index: host in video_embed_field_field_formatter_prepare_view() (Zeile 123 von .....\sites\all\modules\video_embed_field\video_embed_field.module).
I hope its can be fixed.
Thanks Lennard
Comments
Comment #1
jec006 CreditAttribution: jec006 commentedHey Lennard,
I will definitely look into that - would you mind posting the url (or at least the way that the youtube part looks - for example: http://youtube.com?v=... ?
That would help me reproduce and debug
Thanks,
Josh
Comment #2
Lennard CreditAttribution: Lennard commentedThe url with i tested is http://www.youtube.com/watch?v=8HBNtSVFZ_c
its an normal youtube link.
Greets Lennard
Comment #3
eirik k. CreditAttribution: eirik k. commentedI think I know what may be causing this bug. If you allow more than one value, eg. unlimited video fields, you may have empty Video URL fields on the edit screen. video_embed_field_field_formatter_prepare_view does not check if $parts is false (ie. no URL at all) before trying to get $parts['host'].
Comment #4
Lennard CreditAttribution: Lennard commentedYou are right eirikkk :)
The solution for that is little changed in video_embed_field_field_formatter_prepare_view
in video_embed_field.module to:
Thanks eirikkk !
Comment #5
jec006 CreditAttribution: jec006 commentedOk, I fixed this in 2 ways:
1. I updated the empty and validate functions to prevent bad data being sent to the prepare_view function - this will fix this in almost all situations
2. For double security, I am now checking that the parts array in the prepare_view.
You may need to resave your nodes to get everything right.
Here are the commits:
http://drupal.org/commitlog/commit/25834/6c24dcdb22f721a8c252ea140f8344b...
http://drupal.org/commitlog/commit/25834/cee243636cfecc5b414ad0033cd9f2d...