Page 1 of 1
Error message on homepage
Posted: 16 Dec 2011, 09:24
by RickE
I get this at the top of the homepage in Chrome:
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/latest_breederboard.php on line 38: Division by zero
Re: Error message on homepage
Posted: 16 Dec 2011, 10:51
by Jools
Aware of this, it's caused by a data issue with Yanns breeder log data. I asked Yann to fix it by adding a new blog. If that doesn't happen soon I will delve into the data issue itself.
Jools
Re: Error message on homepage
Posted: 16 Dec 2011, 11:54
by MatsP
Jools wrote:Aware of this, it's caused by a data issue with Yanns breeder log data. I asked Yann to fix it by adding a new blog. If that doesn't happen soon I will delve into the data issue itself.
Jools
We probably also should fix the originating cause ("Don't allow zero here") AND check the data when it's being used ("If the number we are about to divide by is zero, don't try to divide"), so that the above error message doesn't happen. Belts and braces! ;)
Care to let me know what the actual cause is?
--
mats
Re: Error message on homepage
Posted: 16 Dec 2011, 18:23
by Jools
MatsP wrote:We probably also should fix the originating cause ("Don't allow zero here") AND check the data when it's being used ("If the number we are about to divide by is zero, don't try to divide"), so that the above error message doesn't happen. Belts and braces! ;)
Care to let me know what the actual cause is?
It theoretically can't happen. It's caused by having a total blog points > 0 and the contributor table but no blog records. That was caused by "test" data from way back when as Yann was one of the first if not the first to try out the blog feature.
Although I asked Yann to add a breeding report to quickly fix this, it appears he's been a bit preoccupied, so I have tracked down the data and reset.
Jools
Re: Error message on homepage
Posted: 17 Dec 2011, 09:45
by Jools
More complex than above, Yann also had two contributor records becuause I had inocrrectly stored his username as yann causing a dunplicate one for Yann to be created.
All cleaned up now and Yann doesn't need to add a blog report to fix it!
Cheers,
Jools