close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

error message confirm page

Thread began 4/09/2009 8:40 pm by jamesbal253688 | Last modified 4/12/2009 8:45 pm by jamesbal253688 | 1645 views | 7 replies |

jamesbal253688

error message confirm page

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

jamesbal253688

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

Sign in to reply to this post

Ray BorduinWebAssist

if you get the error: Call to undefined function curl_init()

that means the curl library isn't installed properly

Sign in to reply to this post

jamesbal253688

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"

Sign in to reply to this post

jamesbal253688

when i run phpinfo() from this page
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

Sign in to reply to this post

jamesbal253688

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

Sign in to reply to this post

jamesbal253688

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

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

Content

rating

Layout

rating

Ease of use

rating

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...