View Full Version : error message confirm page
JBWebWorks
04-09-2009, 05:40 PM
i set up shipping with UPS and i get this error going to the confirm page?
Fatal error: Call to undefined function curl_init() in C:\vhosts\markwatsoncarvings\WA_eCart\WA_eCart_UPS _PHP.php on line 69
thanks for your help,
jim balthrop
Ray Borduin
04-10-2009, 07:05 AM
You need to enable the CURL library in your php.ini file in order to communicate with third party providers like UPS and most payment gateways.
JBWebWorks
04-10-2009, 12:04 PM
thanks Ray
i enabled my curl setting in php.ini, but still get the error
here is my code producing the error on the confirm page. where did i go wrong?
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "LBS"; $Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "4";
i don't have a weight in my database for each item, but the package is the same weight for all items- 4lbs
thanks
jim balthrop
Ray Borduin
04-10-2009, 02:13 PM
if you get the error: Call to undefined function curl_init()
that means the curl library isn't installed properly
JBWebWorks
04-11-2009, 05:27 AM
thanks Ray
i changed the code on line 69 to this
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".$markwatsonCart->DisplayInfo("TotalWeight") ."";
i don't get the error now but get the message from page
/shipping_failure.php
'We're Sorry
No Packages to Ship"
JBWebWorks
04-11-2009, 05:31 AM
when i run phpinfo() from this page
www.markwatsoncarvings.com/test.php
open_basdir has this under Local Value
var/www/vhosts/markwatsoncarvings.com/httpdocs:/tmp
if i could figure out how to change that to 'no value', i think it would solve my problem.
any suggestions?
thanks
jim balthrop
JBWebWorks
04-11-2009, 08:33 PM
i couldn't get my host tech support to figure out how to change my PHP core local value for open_basedir to no value
so i tried this code at the very top of my products page
<?php
ini_set('open_basedir','off');
?>
It Worked!
here is my very first shopping cart with WebAssist eCart4
www.markwatsoncarvings.com
thanks for your help,
jim balthrop
JBWebWorks
04-12-2009, 05:45 PM
i found out that the code was not what had overcome the open_basedir errors.
in the file, domainCart_PHP.php
on line 2
require_once("WA_eCart/WA_eCart_Definition_PHP.php"); //this is correct
require_once("WA_eCart_Definition_PHP.php"); //this is wrong
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.