Go to Google Groups Home    IRStats Discuss
Re: Illegal modulus zero error

Guy <guy.knig...@gmail.com>

Ok, I solved that problem. Looks like it happens when there aren't any
stats (or not enough imported) in the database. It probably shouldn't
be crashing if that's the case, though.

On Nov 10, 3:09 pm, Guy <guy.knig...@gmail.com> wrote:

> Hi,

> I get this error when I try to view the monthly downloads graph:

> Illegal modulus zero at /usr/local/irstats/var/www/irstats/lib/IRStats/
> Visualisation/Graph/Bar.pm line 49.\n, referer:http://dev-www.eprints.qut.edu.au/irstats.cgi

> The line in question is:

> push @labels, "{v:".$i.", label:".quote_javascript($x_labels[$i])."}"
> if ($i % $tick_every) == 0;

> Thanks,
> Guy

> Guy Knights
> Computer Systems Officer
> Library Systems, QUT
> Phone: (07) 3138 3910
> Email: g.knig...@qut.edu.au