'curl-init()' Problem on local server - How I solved it
I'm not sure whether it would be silly to post this here, but since I had this problem and was able to solve it, I thought I might as well let others know.
I decided to test Socrates on a local installation first (i.e. on http://localhost running on my laptop - I'm using WAMPSERVER 2.0 on Windows XP SP2).
When I clicked on the Socrates Theme Control Section right after installation, I was asked to Activate my copy. I put in the code that was provided to me, and I got this Error message - "Call to undefined function: curl_init() ......."...!!!
Oh !!!! What to do ??? ......What was happening ...???...
After looking around a bit, I found that the "php_curl" extension on my Wampserver 2.0 was not running (it was not checked). I checked it, then reloaded (refreshed) the Socrates admin page - and lo - it was working.
This is how to do it, in case you are wondering - if you are running Wampserver 2.0 on Windows XP SP2, left-click on the Wampserver icon in the system-tray (the little tray at the very bottom-right of your screen - where you have your time and internet connection and data transfer icons). On the menu that comes up, go to PHP -> PHP EXTENSIONS -> and click on "php_curl" on the long menu that comes up. Allow a few seconds (or maybe a minute) for the changes to take place (you'll notice the Wampserver icon turn orange(-ish) and then back to white again - that's when the Changes are complete). After that simply refresh the Socrates Admin page that is open in your browser - and you should be set.
Guess if this happens on an online installation, you'll have to speak to your Hosting Provider to turn on the php-curl extension on their php installation.
Hope this helps.
Last edited by samidhranjan; 12-01-2010 at 08:08 AM.
Yes this helps, just got the error for the first time. Thanks for the tip
Thanks for guidance on this. The process for enabling the "php_curl" extension is a little different for XAMPP users - here's a brief explanation I found: -
Just 3 easy steps.
- Locate and open your php.ini file (if not sure open the url http://localhost/xampp/phpinfo.php, and search for the line Loaded Configuration File). Mine was in C:\xampp\php\php.ini.
- Near line 952, uncomment extension=php_curl.dll (remove the semicolon).
- Restart the Apache web server.
Now you should be able to use cURL PHP extension with XAMPP on Windows.
Thank you. We always welcome tips like this.
Hi guys, I'm using Xampp on Vista and have tried the fix given above but it's not working. I have 2 files: php.ini-development and php.ini-production. I've removed the semicolon from both, restarted Apache, cleared my browser cache, no joy. Any ideas?
Aha, I found another file! It's working now, thanks for the info above.
By GeneC in forum Feature Requests
Last Post: 11-17-2010, 02:44 PM
By mlmarchitect in forum Official Support 3.0
Last Post: 07-27-2010, 12:45 PM
By GillionaireG in forum Bug Reporting and Fixes
Last Post: 07-18-2010, 03:21 PM