Closed (fixed)
Project:
Embedded Media Field
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2007 at 22:16 UTC
Updated:
17 Jun 2011 at 19:11 UTC
When I enable this content, make a field, and test it out with a photobucket account, I get the following errors.
# warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in ............/modules/emfield/contrib/image_ncck/providers/photobucket.inc on line 118.
# warning: file_get_contents(http://s29.photobucket.com/....................) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in ...................../modules/emfield/contrib/image_ncck/providers/photobucket.inc on line 118.
Lines 118-119 are the last lines of this include, and are as follows:
$html = file_get_contents($url);
return $title[$url] = preg_match('@<span id="photoTitle">(.+?)</span>@is', $html, $matches)? $matches[1] : '';
Oddly enough, the image I linked does appear and is formatted exactly as I configured. I just have this slew of error messages.
I contacted Dreamhost, they say: "We disabled remote url access using fopen for security reasons."
Is there a workaround for this? If I'm not concerned about the photobucket image title, can I just comment out this line?
Comments
Comment #1
cristobal151 commentedchange that line for this:
//$html = file_get_contents($url);
$rs = drupal_http_request($url);
$html = $rs->data;
use drupal schema!
i hope works for you...
byte
Comment #2
meramo commentedHad the same problem, thanks for help!
Comment #3
aaron commentedah, missed this one. we need to make that change. I'm assuming that cristobal151's solution worked for you, MeRamo?
Comment #4
ikiam commentedthe same problem,
a lot of thanks Cristobal,,,
Comment #5
alex ua commentedI fixed applied this fix to the 6.x-1.x-dev version. I'll backport soon...
Comment #6
jumoke commentedthis worked for me. Thank you cristobal151
Comment #7
rootdownmedia commentedConfirmed #1 solves the issue with 6.x-1.20. Thanks cristobal151!
Anyway we can get this committed into the next version?
Comment #8
aaron commentedbackported.