
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Foundation checkout error..... with install Bundle::libnet is updated
After a quick search on my system, it turns out that getUPS is the
subroutine called within the VENDROOT/usertag/ups_query.tag file. make
sure that you have this usertag in your usertag directory, and make sure
that the user interchange is running as has access to read this file.
Here's my ups_query.tag text
------------------------------------------------------------
UserTag ups-query Order mode origin zip weight country
UserTag ups-query Routine <<EOR
sub {
my( $mode, $origin, $zip, $weight, $country) = @_;
BEGIN {
eval {
require Business::UPS;
import Business::UPS;
};
};
$origin = $::Variable->{UPS_ORIGIN}
if ! $origin;
$country = $::Values->{$::Variable->{UPS_COUNTRY_FIELD}}
if ! $country;
$zip = $::Values->{$::Variable->{UPS_POSTCODE_FIELD}}
if ! $zip;
$country = uc $country;
#::logGlobal("calling with: " . join("|", $mode, $origin, $zip, $weight,
$country));
my ($shipping, $zone, $error) =
getUPS( $mode, $origin, $zip, $weight, $country);
#::logGlobal("received back: " . join("|", $shipping, $zone, $error));
if($error) {
$Vend::Session->{ship_message} .= " $mode: $error";
return 0;
}
return $shipping;
}
EOR
-------------------------------------------------------------------
You can also, uncomment the #Log lines to record the variables to the
error.log.
The subroutine getUPS IS part of the Business::UPS perl module. Do you
have two different versions of perl installed? I know in my case, I have
the original (Redhat6.x v5.005_03) perl installed at /usr/bin/perl and my
updated version (5.6.1) at /usr/local/bin/perl and I have to make sure that
IC is using the correct one.
try
/path/to/perl/perl -MCPAN -e'install Business::UPS'
Correct process.html is created on-the-fly by IC.
At 03:18 PM 10/9/01 -0500, you wrote:
>Brian, it looks like that it not the problem, also it seems that
>process.html is created by the session ?? is that correct? because I could
>not find it anywhare. !!
>
>----- Original Message -----
>From: "Brian Kosick" <briank@nacs.net>
>To: <interchange-users@interchange.redhat.com>
>Sent: Tuesday, October 09, 2001 1:44 PM
>Subject: Re: [ic] Foundation checkout error
>
>
> > It seems to be indicating that it can't find the subroutine that it
>needs....
> > Can you try it with a different shipping method? Does it work then? Are
> > you sure that you installed Bundle::Interchange? It includes a module
> > called Business-UPS
> >
> > It's real easy to install perl modules using cpan....
> >
> > perl -MCPAN -e'install Bundle::Interchange'
> >
> > At 02:35 PM 10/9/01 -0500, you wrote:
> > >this is what I cut from the error log:
> > >
> > >172.173.182.78 UaohW5ba:172.173.182.78 - [08/October/2001:02:40:26 -0400]
> > >foundation /cgi-bin/foundation/process.html Runtime error: Undefined
> > >subroutine &Vend::Interpolate::getUPS called at (eval 109) line 17.
> > >
> > >
> > >----- Original Message -----
> > >From: "Brian Kosick" <briank@nacs.net>
> > >To: <interchange-users@interchange.redhat.com>
> > >Sent: Tuesday, October 09, 2001 12:39 PM
> > >Subject: Re: [ic] Foundation checkout error
> > >
> > >
> > > > What's the error log say?
> > > >
> > > >
> > > > At 01:23 PM 10/9/01 -0500, you wrote:
> > > > >"The server encountered an internal error or misconfiguration and was
> > >unable
> > > > >to..."
> > > > >
> > > > >That's the message I get when I attempt to check out in the
>foundation
> > >demo
> > > > >store !!
> > > > >my apache config is fine...can anybody help please
> > > > >
> > > > >
> > > > >Sam Harris
> > > > >samharris@usa.com
> > > > >
> > > > >_______________________________________________
> > > > >interchange-users mailing list
> > > > >interchange-users@interchange.redhat.com
> > > > >http://interchange.redhat.com/mailman/listinfo/interchange-users
> > > >
> > > > Brian Kosick
> > > > Web Programmer
> > > > New Age Consulting Service, Inc.
> > > > 216-619-2000
> > > > briank@nacs.net
> > > >
> > > > _______________________________________________
> > > > interchange-users mailing list
> > > > interchange-users@interchange.redhat.com
> > > > http://interchange.redhat.com/mailman/listinfo/interchange-users
> > >
> > >_______________________________________________
> > >interchange-users mailing list
> > >interchange-users@interchange.redhat.com
> > >http://interchange.redhat.com/mailman/listinfo/interchange-users
> >
> > Brian Kosick
> > Web Programmer
> > New Age Consulting Service, Inc.
> > 216-619-2000
> > briank@nacs.net
> >
> > _______________________________________________
> > interchange-users mailing list
> > interchange-users@interchange.redhat.com
> > http://interchange.redhat.com/mailman/listinfo/interchange-users
>
>_______________________________________________
>interchange-users mailing list
>interchange-users@interchange.redhat.com
>http://interchange.redhat.com/mailman/listinfo/interchange-users
Brian Kosick
Web Programmer
New Age Consulting Service, Inc.
216-619-2000
briank@nacs.net
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users