Fatal error: Call to undefined function curl_init()
I have recently upgraded to ecart5 from ecart4 for an existing site. I am making a few changes to the site on my testing server where I have XAMPP 1.7.2 installed. Here is the error message I am receiving with items in my shopping cart, and after attempting to checkout on the checkout page.
Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\file-name\WA_eCart\WA_eCart_UPS_PHP.php on line 70
Here is the code from the above page:
echo $UPS_PkCount;
69 if ($UPS_PkCount > 0) {
70 $WA_UPS_Curl = curl_init();
71 curl_setopt($WA_UPS_Curl, CURLOPT_URL, "https://www.ups.com/ups.app/xml/Rate");
72 curl_setopt($WA_UPS_Curl, CURLOPT_HEADER, 0);
73 curl_setopt($WA_UPS_Curl, CURLOPT_SSL_VERIFYPEER, 0);
74 curl_setopt($WA_UPS_Curl, CURLOPT_POST, 1);
75 curl_setopt($WA_UPS_Curl, CURLOPT_POSTFIELDS, $UPS_XML);
76 curl_setopt($WA_UPS_Curl, CURLOPT_RETURNTRANSFER, 1);
77 $WA_UPS_Response = curl_exec ($WA_UPS_Curl);
78 curl_close($WA_UPS_Curl);
Note the "echo $UPS_PkCount;" that I inserted to get the $UPS_PkCount variable. The statement gave me a value of 1.
The live site (without my latest changes) works fine. Any ideas?
Thanks,
Robert