- Issue created by @bisonbleu
- π¬π§United Kingdom egfrith
Hmm... I'm wondering if there is a ratio stored like "0/0". In this case, I think the answer is to return 0. However, if we are trying to compute "1/0" that makes no sense, and we should at least return a meaningful error.
The aim of the attached patch is to implement the above idea. If there's an error, there's some problem upstream in the code of this issue, which will need more thinking about.
This patch works for me, in the sense that it doesn't break normal behaviour. However, I've not managed to reproduce the divide by zero error - I suspect it needs a particular set of data. If you could try running with this patch and test a year/month that (hopefully) reliably gave an error, we could maybe then see if it's just bad luck with the data (perhaps no visitors yet), or something more serious.
- π¨π¦Canada bisonbleu
Tested the patch. The View site statistics page now loads. But the charts for Days of month, Days of week (Averages), Hours (Averages) are back to displaying only 3 columns - i.e. broken.