Hi,
I noticed that when the absolute maximum amount ofwork in a sprintis
0 days, ScrumWiki terminates abnormally and the web server sends
error 500 to the user. That can happen when you create a new sprint
and add several tasks without estimates to it.
Upon further investigation I found that it happens because of
division by 0 error in the DrawPng subroutine. The Apache error log
showed this:
Illegal division by zero at /space/elias/wiki/wiki.pl line 6879.
I fixed this by adding a line of code below
if ($max < 1) { $max = 1; }
right after following lines in the DrawPng subroutine
# calculate the max value, so we can scale the y axis
foreach (@values) { if ($_ > $max) { $max = $_; }; }
Thanks.