Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I am using video field embed to create a video field that is part of an node gallery. I allow an unlimited number of fields in the widget. In a view, I add video as a field and choose the thumbnail formatter. I've tried this with both normal and teaser video modes. Everything works great except that the thumbnail is blank, and if I try to view it I just get "Error generating image." It would be good if the YouTube thumbnail was available or even if there were just a default thumb that showed a video icon.
Comments
Comment #1
Botto CreditAttribution: Botto commentedI had this same issue. It was my web server. You need to make sure your web server can communicate with the youtube servers.
Try it on a different server or local one.
Comment #2
bbinkovitz CreditAttribution: bbinkovitz commentedThanks! Can you point me to which server settings affect this?
Comment #3
bbinkovitz CreditAttribution: bbinkovitz commentedI got it to work by enabling the "description" field on the field in the content type, and then setting the input format of that field to PHP filter. That seems really bizarre so I'm going to try to look at whether there's something I could patch to make it not depend on those settings.
Comment #4
bbinkovitz CreditAttribution: bbinkovitz commentedComment #5
Botto CreditAttribution: Botto commentedI do not beleive it is connected to the description field at all.
What I have seen is that the module first tries to use the drupal api to get the image, if that fails it goes over to just using copy, however this would also fail considering the drupal api failed.
I think there just needs to be some improvement in the fallback or messaging of failure.
Comment #6
bbinkovitz CreditAttribution: bbinkovitz commentedI encountered the same issue with the same module later, on a different project. I don't know what the server settings looked like because I was not privy to that information, but once again we had to enable the description field and allow it to evaluate PHP.
Comment #7
DElioncomment withdrawn
Comment #7.0
DElionAdded error message info
Comment #8
hkirsman CreditAttribution: hkirsman commentedVimoe thumbnails are not generated either. Where do you get to set the evaluate PHP for description field?
Comment #9
candelas CreditAttribution: candelas commentedI discovered that for previewing the thumbnail I had to re-save the content. Then the thumb was created in files/video_embed_field_thumbnails/youtube
I hope it helps someone :)
Comment #10
hugronaphor CreditAttribution: hugronaphor as a volunteer and at Acrosto for Dropsolid commentedIn my case that was the fix:
https://www.drupal.org/node/2145057#comment-11252795
Comment #11
jddh CreditAttribution: jddh as a volunteer commentedFor me, the issue was that my host whitelists insecure remote file requests. For youtube embed thumbs, this module calls drupal_http_request() to http://i.ytimg.com and fails because of the whitelist. I forced the thumb URL to https before the file request is made and all is well.