[ic] Admin link fails and Report doesn't report

Martin Abell abellmt@spsp.net
Thu, 05 Oct 2000 16:51:11 -0400


Hi:

I have 4.5.6 on Linux from the RPM.  Most pieces running, but have 2
problems.  First, clicking the Administration button at the right end of the
menubar (admin screen) gives Internal Server Error and error log has:

> 
216.19...(yada yada yada)... - [05/October/2000:16:03:28 -0400] rocafixusa
/cgi-bin/rocafixusa/admin/genconfig.html Runtime error: Can't use string
("") as an ARRAY ref while "strict refs" in use at (eval 61) line 20.

Second problem is when click on Reporting button, then select any report
(e.g. Overall by Month), the table is empty and the error log has:

> 
216.19...(yada yada yada)... - [05/October/2000:16:06:39 -0400] rocafixusa
/cgi-bin/rocafixusa/admin/reports/order/ByAffiliate.html Safe: Not an ARRAY
reference at (eval 1557) line 11.
> 
> 
>     my %sales;
>     $master = {};
>     if($Scratch->{synd_limit}) {
>         $syndstring = "&affiliate=$CGI->{affiliate}";
>     }
>     else {
>         $syndstring = "";
>     }
>     #Log("query returned " . $Tag->uneval( {ref => $Tmp->{main} } ));
>     foreach $line (@{$Tmp->{main}}) {
>         my ($month) = substr($line->{order_date}, 0, 6);

(and lots more code)

Any clues as to what is configured wrong?  Any pointers appreciated.

Martin
Speedspan