[ic] checkout.html possible bug

Leon Harris interchange-users@lists.akopia.com
Mon Jul 30 03:09:00 2001


Hi.
My interchange 4.7.7 has a problem, similar to the one mentioned by
jose_andres a day or so ago.
When I try to check out product, I get  the following error:


192.168.1.20 uH9ZwJau:192.168.1.20 - [30/July/2001:13:12:51 +0800] duke
/cgi-bin/duke/ord/checkout.html Runtime error: Can't use string ("4") as
a HASH ref while "strict refs" in use at (eval 116) line 5.

When I put
[log file=/var/log/interchange/error.log] line n [/log]
traps into the checkout.html code, I can track the problem to the block
of code which calculates the weight ( line 189 ). If I change the weight
to 0 in the products database, the problem is bypassed and the page is
displayed.  If  I change the middle line to [seti weight] 2 [/seti], the
page also gets displayed. In both cases the checkout.html page is not
rendered properly - there are ones ( 1 ) printed in strange places all
over it, however these disappear when I remove my logging tags.

Should there be an underscore or hyphen between summary and amount ? or
is summary an undocumented tag?



 [if-item-field weight]
 [seti weight][summary amount=`[item-quantity] * [item-field
weight]`][/seti]
 [/if-item-field]


Cheers,
Leon