karim karimeri
karim karimeri

Reputation: 188

Fatal error: Call to undefined function curl_setopt() in Varien_Http_Adapter_Curl.php on line 87

I want to access to magento admin in my local wamp , but i get this erreur ,

Fatal error: Call to undefined function curl_setopt() in C:\wamp\www\magento\includes\src\Varien_Http_Adapter_Curl.php on line 87

i have installed the extension php_curl but no result so have you an idea about the issus of this probleme ?

Upvotes: 1

Views: 2933

Answers (3)

piter entity
piter entity

Reputation: 527

I had exactly the same error on my development machine. And enabling curl did not resolve the problem although I had both ssleay32.dll and libeay32.dll in my apache\bin folder.

The solution was copying also the libssh2.dll file to the apache\bin folder.

See http://php.net/manual/en/curl.installation.php for reference.

Upvotes: 0

karim karimeri
karim karimeri

Reputation: 188

I have solved this with deleting the wampserver and install it again , so thanks my freind for you sugestions

Upvotes: 1

RiggsFolly
RiggsFolly

Reputation: 94662

Using the wampmanager menus do this to activate the php_curl extension

wampmanager -> PHP -> PHP Extensions -> click the php_curl item in the menus if it is not ticked already.

You also need to make sure that these 2 dll's are in the \wamp\bin\apache\apachex.y.z\bin folder.

ssleay32.dll
libeay32.dll

If you are using WAMPServer 2.5 this should be done when you click the extension link on the menu, a SYMLINK will be created for these 2 dll's from the PHP folder where they live.

If you are using pre WampServer 2.5 you will have to copy them from wamp\bin\php\phpx.y.z to the \wamp\bin\apache\apachex.y.z\bin folder.

Upvotes: 1

Related Questions