[ic] Help understanding error log entry: Safe: syntax error....

Stefan Hornburg interchange-users@icdevgroup.org
Thu Feb 13 11:01:00 2003


On Thu, 13 Feb 2003 10:15:20 -0500
DB <DB@M-and-D.com> wrote:

> IC 4.6.7 w/modified foundation
> 
> I created a new usertag and it seems to work as planned. However I'm now 
> seeing new entried in my catalog's error.log. The lines from the error 
> log look like this:
> 
> ------ begin log snippet ---------
> 
> 64.144.71.115 GwAaahqx:64.144.71.115 - [13/February/2003:09:56:39 -0500] 
> MDS /cgi-bin/MDS/ord/basket Safe: syntax error at (eval 749) line 1, 
> near ">"
>  >
>  > >0
>  >
> 
> ------ end log snippet ---------
> 
> And here's a section from  my ...templates/componenets/cart. I'm pretty 
> sure that the first line causes the error because if I change the 0 to 
> say a 5, I see "> >5" in the erorr log where "> >0" was before.
> 
> ---- begin cart snippet ------------
> [if type=explicit compare="[calc][scratch atvtotal noformat=1]>0 [/calc]"]
> [and type=explicit compare="[calc][scratch atvtotal noformat=1]<25 [/calc]"]
>   [then]
>   [discount ENTIRE_ORDER] $s + 4 [/discount]
>   [/then]
> [/if]
> ---- end cart snippet ------------
> 
> This atvtotal variable gets defined in my user tag like this:
> $Scratch->{'atvtotal'} = $atvtot;
> 
> As I said, eveything seems to work but I want to get rid of these error 
> log enties. Can anyone spot my error or tell me how to debug?

Looks like the scratch variable is empty. Try to change the user tag line to:

$Scratch->{atvtotal} = $atvtot || 0;

BTW: noformat=1 in the scratch tag does nothing useful.

Bye
       Racke