[ic] default foundation, construct catalogs cause internal server error on checkout.

Leon Harris interchange-users@lists.akopia.com
Thu Jul 26 11:49:25 2001


Hi.
I get the following error when I try to check out my purchases using
the supplied foundation demo on 4.7.6:

192.168.1.20 Le4JQW3p:192.168.1.20 - [27/July/2001:00:01:20 +0800]
foundation /cgi-bin/foundation/process.html Runtime error: Can't use
string ("1") as a HASH ref while "strict refs" in use at (eval 117) line
5.


I have selected 2 items in my shopping cart, clicked check out and then
I get this error.


checkout.html is the default and looks like this:
I assume it is complaining about my $db = $Db{country} or return; , but
why does the default fail?



[comment]
ui_template: Yes
ui_template_name: noleft
[/comment]

[tmp page_title]__COMPANY__ -- Check Out[/tmp]

@_NOLEFT_TOP_@

[perl tables="country products"]
    my $db = $Db{country} or return;

    my $domestic = $Variable->{DOMESTIC_SHIPPING} || 'US CA';
    $domestic =~ s/\W+/ /g;
    my @dom = grep /\S/, split /\s+/, $domestic;
    my %dom;
    @dom{@dom} = @dom;
    my $modes;
    if($Values->{country}) {
        $modes = tag_data('country', 'shipmodes', $Values->{country});
        @modes = grep /\S/, split /[\s,\0]+/, $modes;
    }


Any help appreciated.

Cheers,
leon