[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Bug report ; error in Interpolate.pm
****** message to minivend-users from Murray Gibbins <murray@scotweb.ltd.uk> ******
I'm trying to sort out an error with my minivend mall, when I found this.
on line 4625 of Interpolate.pm you send a field to 'column_exists' for testing
with the line..
unless (column_exists $field) {
logError("Custom shipping field '$field' doesn't exist. Returning 0");
goto SHIPFORMAT;
}
however I could only find sub 'column_exists' in Table/DBI.pm line 353.
It looks like this...
sub column_exists {
my ($s, $column) = @_;
$s = $s->import_db() if ! defined $s->[$DBI];
return defined($s->[$CONFIG]{COLUMN_INDEX}{lc $column});
}
surly this sub needs two arguments, the first of which should not be the feild
but the db?
If this is the case this might explain why I've been getting lots of...
193.195.20.134 pbBNdCWj:193.195.20.134 - [23/May/2000:17:03:47 +0000]
heritagepark /heritagepark/process Custom shipping field 'weight' doesn't exist.
Returning 0
193.195.20.134 pbBNdCWj:193.195.20.134 - [23/May/2000:17:03:47 +0000]
heritagepark /heritagepark/process Custom shipping field 'weight' doesn't exist.
Returning 0
even though my catalog.cfg file has
DataBase shipping shipping.asc TAB
DefaultShipping UK
CustomShipping cost
here is a line from my shipping.asc
code display calcby lowerlimit upperlimit cost
UK United Kingdom weight 0 99999999 f [perl subs=1 global=1
]my $null =
gen_hash($Scratch->{present_cart},$Carts->{$Scratch->{present_cart}},$Tag); my
$cost = send_message([$null,$Scratch->{present_cart},"UK"]);return $cost;[/perl]
when I had just one shop shipping worked fine. Then I move all the databases to
minivend.cfg . Only at that time did things go wrong.
Yours
Murray
--
____
\__/ Murray Gibbins murray@scotweb.ltd.uk
/ \ Programmer
_ \__/ _ ================================================
\\ || // Scotweb Limited, info@scotweb.ltd.uk
\\||// 13a Albert Terrace, http://www.scotweb.ltd.uk
\||/ Edinburgh EH10 5EA Tel: +44 (0) 131 270 82 33
|| Scotland. Europe. Fax: +44 (0) 7020 93 49 04
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list