Closed (works as designed)
Project:
Scribd field
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2010 at 08:38 UTC
Updated:
11 Mar 2011 at 12:49 UTC
When I try to create a test node of a content type A (which includes scribd field) I get this error:
"Fatal error: Call to undefined function curl_init() in .../sites/all/modules/scribdfield/scribdfield.module on line 169"
In line 169 is the call :
$ch = curl_init(); // slightly simpler than drupal's version.
in function :
function scribdfield_api_upload($file) {
$params['file'] = '@' . $file;
$params['method'] = 'docs.upload';
$params['api_key'] = variable_get('scribd_api_key', NULL);
$ch = curl_init(); // slightly simpler than drupal's version.
curl_setopt($ch, CURLOPT_URL, 'http://api.scribd.com/api');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
return new SimpleXMLElement(curl_exec($ch));
}
In my debian server I have installed the package php5-curl
Comments
Comment #1
miklThis module requires curl to be available in PHP. If the curl_init function is not available, it's not properly set up: http://dk.php.net/manual/en/function.curl-init.php :)