bogotshot Posted August 26, 2008 Posted August 26, 2008 New install of oscommerce, shopping cart not active, loaded UPS module from oscommerce site. module loaded is UPSXML_v1_3_5. This is what happens, when I go and click on checkout this error message appears Fatal error: Call to undefined function curl_init() in C:\wamp\www\catalog\includes\modules\shipping\upsxml.php on line 676 This is the code on upsxml.php have not loaded any other modules. NoSSL yet, No active credit card payment set up. just got started. Do have UPS account active. input that data into panel on setup. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // uncomment the next line if you get curl error 60: error setting certificate verify locations // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // uncommenting the next line is most likely not necessary in case of error 60 // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest); curl_setopt($ch, CURLOPT_TIMEOUT, (int)$timeout); if ($this->logfile) { error_log("UPS REQUEST: " . $xmlRequest . "\n", 3, $this->logfile); } $xmlResponse = curl_exec ($ch); if (curl_errno($ch) && $this->logfile) { $error_from_curl = sprintf('Error [%d]: %s', curl_errno($ch), curl_error($ch)); error_log("Error from cURL: " . $error_from_curl . "\n", 3, $this->logfile); I can't be the only person who has had this issue. Ya'll are the best in the business, please advise. I don't have any majors issues of reloading software if that is what it takes to fix issue. Yes, Bo did got shot in Atlanta --bad drug deal--He was shot in his man parts. 1997
jefs.42 Posted August 26, 2008 Posted August 26, 2008 New install of oscommerce, shopping cart not active, loaded UPS module from oscommerce site. module loaded is UPSXML_v1_3_5. This is what happens, when I go and click on checkout this error message appears Fatal error: Call to undefined function curl_init() in C:\wamp\www\catalog\includes\modules\shipping\upsxml.php on line 676 This is the code on upsxml.php have not loaded any other modules. NoSSL yet, No active credit card payment set up. just got started. Do have UPS account active. input that data into panel on setup. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // uncomment the next line if you get curl error 60: error setting certificate verify locations // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // uncommenting the next line is most likely not necessary in case of error 60 // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest); curl_setopt($ch, CURLOPT_TIMEOUT, (int)$timeout); if ($this->logfile) { error_log("UPS REQUEST: " . $xmlRequest . "\n", 3, $this->logfile); } $xmlResponse = curl_exec ($ch); if (curl_errno($ch) && $this->logfile) { $error_from_curl = sprintf('Error [%d]: %s', curl_errno($ch), curl_error($ch)); error_log("Error from cURL: " . $error_from_curl . "\n", 3, $this->logfile); I can't be the only person who has had this issue. Ya'll are the best in the business, please advise. I don't have any majors issues of reloading software if that is what it takes to fix issue. Yes, Bo did got shot in Atlanta --bad drug deal--He was shot in his man parts. 1997 Your PHP installation needs to have the curl library functions compiled in. Check with your host. You can also create an empty php file and put in <?php phpinfo(); ?> Go to that page in your browser and look for curl. The Configure Command near the top should, most likely, have a '--with-curl' in it. But also scroll down and look for a section title curl. It should say cURL support enabled. If it's not compiled in, the server may still have the curl binary available. If so check near the top of your upsxml.php file (around line 80 in my file). There's a note there about using the binary if it's not compiled into php (well, there is in mine - says version 1.1.4) Here's what's in mine there: // when cURL is not compiled into PHP (Windows users, some Linux users) // you can set the next variable to "1" and then exec(curl -d $xmlRequest, $xmlResponse) // will be used $this->use_exec = '0';
bogotshot Posted August 26, 2008 Author Posted August 26, 2008 Your PHP installation needs to have the curl library functions compiled in. Check with your host. You can also create an empty php file and put in <?php phpinfo(); ?> Go to that page in your browser and look for curl. The Configure Command near the top should, most likely, have a '--with-curl' in it. But also scroll down and look for a section title curl. It should say cURL support enabled. If it's not compiled in, the server may still have the curl binary available. If so check near the top of your upsxml.php file (around line 80 in my file). There's a note there about using the binary if it's not compiled into php (well, there is in mine - says version 1.1.4) Here's what's in mine there: // when cURL is not compiled into PHP (Windows users, some Linux users) // you can set the next variable to "1" and then exec(curl -d $xmlRequest, $xmlResponse) // will be used $this->use_exec = '0'; you fixed the error. now I get this at check out: Shipping Method This is currently the only shipping method available to use on this order. United Parcel Service United Parcel Service : If you prefer to use UPS as your shipping method, please contact Willie Wet Shop via Email.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.