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

cristobal151’s picture

change 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

meramo’s picture

Had the same problem, thanks for help!

aaron’s picture

Category: support » bug
Status: Active » Needs review

ah, missed this one. we need to make that change. I'm assuming that cristobal151's solution worked for you, MeRamo?

ikiam’s picture

the same problem,
a lot of thanks Cristobal,,,

alex ua’s picture

Status: Needs review » Patch (to be ported)

I fixed applied this fix to the 6.x-1.x-dev version. I'll backport soon...

jumoke’s picture

this worked for me. Thank you cristobal151

rootdownmedia’s picture

Confirmed #1 solves the issue with 6.x-1.20. Thanks cristobal151!

Anyway we can get this committed into the next version?

aaron’s picture

Status: Patch (to be ported) » Fixed

backported.

Status: Fixed » Closed (fixed)

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