I get this error when I edit a content type that embed a vimeo video:

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration en video_embed_field_handle_vimeo_thumbnail() (línea 263 de ../sites/all/modules/video_embed_field/video_embed_field.handlers.inc).

Warning: file_get_contents(http://vimeo.com/api/v2/video/38972425.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found en video_embed_field_handle_vimeo_thumbnail() (línea 263 de ../sites/all/modules/video_embed_field/video_embed_field.handlers.inc).

Warning: current() [function.current]: Passed variable is not an array or object en video_embed_field_handle_vimeo_thumbnail() (línea 265 de../sites/all/modules/video_embed_field/video_embed_field.handlers.inc).

---
I create a php.ini in the root directory and enable allow_url_fopen, but the problem it persists.

I appreciate your help.

Thanks.

Comments

jec006’s picture

Status: Active » Fixed

Sorry about this issue.

I replaced file_get_contents (which as you are experiencing, doesn't always work on remote files) and replaced it with drupal_http_request, which should work more consistently across environments.

Committed here: http://drupal.org/commitlog/commit/25834/7e05d8882c3e23bd2fb811274545c10...

Status: Fixed » Closed (fixed)

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