close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Fatal error: Call to undefined function curl_init()

Thread began 2/11/2010 1:16 am by robert222776 | Last modified 2/11/2010 1:47 pm by robert222776 | 1934 views | 2 replies |


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, "");
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?


Sign in to reply to this post

Jason ByrnesWebAssist

you have to edit the xampp php.ini file to enable the cURL extesnion.

in the php.ini file, find the following line:

and change it to:

then restart the xampp server.

Sign in to reply to this post


That fixed it. Thanks Jason!


Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...