Call to undefined function curl_init() - with WAMP
WAMP 2.2 comes with a wrong cURL extension. You should download the fixed file from the following link:
http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/. Then replace the file php_curl.dll into /php5.4.3/ext/.
Call to undefined function curl_init() after updating PHP version in WAMP
This is very dumb of me, but I finally solved it, leaving this answer here in case anyone struggles with the same problem.
I needed to update Apache from 2.4.33 to 2.4.47. Seems like the .33 version had problems with loading the cURL extension in PHP 7.4 for some reason.
Call to undefined function curl_init() error in wamp 2.2
Visit this and have a file under Fixed curl extensions:
http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
after download and replace related file then restart server.
In browser navigate to localhost and make sure there is curl extensions showing under Loaded Extensions :
Call to undefined function curl_init() in wampp
You either edit wrongCall to undefined function curl_init
php.ini
file or something is missing on your system, preventing curl extension from loading. You shall check with phpinfo()
where is proper php.ini
, then check if you got extension
entry for cURL really enabled. If so and it is still not working then next step should be checking Apache's error.log
looking for detailed error messages from PHP. WAMP 2.2 Localhost Call to undefined function curl_init()
Make sure the php_curl extension is selected in your Wamp PHP extension options.
Edit to make the answer clear: There are two php_curl.dll files to be found on the website linked to in the question:
http://www.mediafire.com/file/0hm40owj08y68p7/php_curl-5.3.13-nts-VC9-x64.zip
and
http://www.mediafire.com/file/qwgdzgccthzwc15/php_curl-5.3.13-VC9-x64.zip
Looks like only one of them worked for the OP.
Call to undefined function curl_init(), but it's enabled
Replace the dll file found in ext folder with the correct version here:
http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
I am using win 8 64bit so the version for me was:
http://www.mediafire.com/?0hm40owj08y68p7
Related Topics
Laravel 5 Auth Post Submit - Tokenmismatchexception in Verifycsrftoken.PHP Line 46
Moving Array Element to Top in PHP
How to Retrieve Date from Table Cell Using PHPspreadsheet
How to Resize and Convert an Uploaded Image to a Png Using Gd
Symfony: Form Issue Using Return Type Hinting in Doctrine Entity Methods
How to JSON_Encode Array with French Accents
MySQL Int(11) Number Out of Range
Wordpress Paginate_Links - How to Use It
How to Remove Text Between Tags in PHP
PHP Class Not Found But It's Included
Storing Leading Zeros of Integers in MySQL Database as Integer
How to Wrap Text Using Imagick in PHP So That It Is Drawn as Multiline Text
Error with .Htaccess and Mod_Rewrite
How to Access Outer Local Variable in PHP
How to Remove All Dtddwrappers and Labels on Zend Form Elements