I'm getting the following errors regarding a vimeo video. Looks like it is trying to rebuild the thumbnails but the file access method isn't working. Strange this is that it does end up grabbing the new thumbnail, but it gives this error when I go to edit the video node.

  • warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/8312/domains/site.org/html/dev/sites/all/modules/emfield/contrib/emthumb/emthumb.module on line 565.
  • warning: file_get_contents(http://ts.vimeo.com.s3.amazonaws.com/176/209/17620929_160.jpg) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/8312/domains/site.org/html/dev/sites/all/modules/emfield/contrib/emthumb/emthumb.module on line 565.
CommentFileSizeAuthor
#1 emthumb.patch912 bytestheoldfather

Comments

theoldfather’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Active » Patch (to be ported)
StatusFileSize
new912 bytes

Here is the patch. It ignores the warning thrown by file_get_contents and checks to see if $image is set. If not, it attempts to use cURL to fetch the image instead. This is patched from the current dev build.

mengzi’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha2

I get the exact same error on Drupal 7.x, 1.0 alpha2.

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in MediaInternetYouKuHandler->save() (line 42 of /homepages/[...]/htdocs/drupal7/sites/all/modules/media_youku/includes/MediaInternetYouKuHandler.inc).
Warning: file_get_contents(http://v.youku.com/player/getPlayList/VideoIDS/[...]/timezone/+08/versio...) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in MediaInternetYouKuHandler->save() (line 42 of /homepages/[...]/htdocs/drupal7/sites/all/modules/media_youku/includes/MediaInternetYouKuHandler.inc).
Warning: filesize() [function.filesize]: stat failed for youku://v/xyz in file_save() (line 570 of /homepages/[...]/htdocs/drupal7/includes/file.inc).

Would anyone what this might be caused by?

kenorb’s picture

Issue summary: View changes
Status: Patch (to be ported) » Needs review