Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Call to undefined function curl_setopt()

every thing has been working well on my localhost but when i have uploaded it in the server after that whenever i am trying to login my admin panel then it is giving the following error.

Fatal error: Call to undefined function curl_setopt() in D:\INETPUB\VHOSTS\lostandfound.co.in\nityapusta\magento\jewellery\lib\Varien\Http\Adapter\Curl.php on line 87

like image 741
Enthusiast Programmer Avatar asked Nov 05 '12 04:11

Enthusiast Programmer


3 Answers

You have to enable CURL and restart you XAMPP/WAMP/MAMP.

  1. Go to php.ini file.
  2. Enable Curl by uncommenting the semicolan before "extension=php_curl.dll".
  3. Restart your server - XAMPP/WAMP/MAMP.

If you are using live server, contact your hosting provider support to get help on this.

like image 200
gvm Avatar answered Sep 25 '22 19:09

gvm


You may be using windows 7/8 64 bit, there is a solution: replace your extension php_curl.dll with this file: http://www.mediafire.com/download/qwgdzgccthzwc15/php_curl-5.3.13-VC9-x64.zip

it works for me.

like image 32
tesmojones Avatar answered Sep 26 '22 19:09

tesmojones


Enable Curl by uncommenting the semicolan before "extension=php_curl.dll" in php.ini file and you need to restart your Apache server for the changes to take effect. I had similar problem and I had to restart the Apache to make it work.

like image 31
Xman Classical Avatar answered Sep 25 '22 19:09

Xman Classical