Closed (fixed)
Project:
Web Links
Version:
6.x-2.x-dev
Component:
Contrib: Pralexa
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 May 2009 at 08:47 UTC
Updated:
4 Feb 2013 at 14:29 UTC
If I run cron I get the following error
Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\sites\all\modules\weblinks\contribs\pralexa\pralexa.module on line 312
I recently updated to 2.0-rc2 (with the former files of the module removed), then to the latest dev of May 31 and also ran update.php. I also just activated the show ranking information.
What can I do?
Comments
Comment #1
nancydruThe simplest thing at the moment is to add the "php_curl" extension to your Apache set up (and restart it).
I think we are going to have to add a requirements check for Pralexa. (see something like #334545: Call to undefined function curl_init()).
Comment #2
nancydruHmm, I also found #219873-3: PHP Fatal error: Call to undefined function curl_init(), which looks workable since we already use that function.
Comment #3
chia commentedJust uncomment the line inside php.ini:
;extension=php_curl.dll
just make sure that curl appear as enabled in phpinfo
just restart your Apache
And i think it should work.
Correct me if i didnt get your Question.
Comment #4
nancydru@jasonleon: Thanks for the answer. I'm wondering if switching to drupal_http_request (in the second link above) might be a better solution.
Comment #5
chia commentedwell i just read the drupal_http_request function.
I am pretty sure it will work.
Well Socket connection used in drupal_http_request is a better way so switching might be a good idea.
Comment #6
nancydruFor example:
Comment #7
nancydruSimpleXML is enabled by default, but I wonder if a hook_requirements would still be a good idea?
Duh: http://drupal.org/project/simplexml
Comment #8
chia commentedHey i have seen the changes to the module.
Well, was there any problem in parsing xml through simplexml_load_file function ?
I thought this was a better way to do that.
Comment #9
nancydruI tried the above code (with the simplexml) as a php page and it worked. Now I just need to put them into the module when I have time. I'm just not sure whether or not to require the module I pointed to or to reproduce that code in Web Links or just not worry about it.
Comment #10
nancydrucommitted to 6.x-2.x-dev
Comment #11
nancydruIncluded in 6.x-2.0-rc3.
Comment #12
adnanawan commentedi installed the apachi php server, i findout file php.ini i changed and also deleted but i not got changing in error curl.ini() and drupal_http_request not sucess can u sure its running in other server what i must to reset
please if u have any solution then tel me what shuld i do for that critical mattar ,,, i want this answer to solve ,
i restarted apachi so not changing something , error is error not sucesss tel me curlini problem , anser reply me