Error message on homepage
- RickE
- Posts: 439
- Joined: 05 Dec 2008, 10:06
- I've donated: $20.00!
- My cats species list: 7 (i:1, k:0)
- My aquaria list: 2 (i:2)
- My BLogs: 1 (i:0, p:43)
- Location 2: Watford, UK
Error message on homepage
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
[phpBB Debug] PHP Warning: in file /home/webcat/planetcatfish.com/common/functions/latest_breederboard.php on line 38: Division by zero
Rick
- Jools
- Expert
- Posts: 16274
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 941
- My catfish: 237
- My cats species list: 87 (i:13, k:1)
- My aquaria list: 21 (i:13)
- My BLogs: 7 (i:10, p:167)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Error message on homepage
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
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 10 (i:8)
- My BLogs: 4 (i:0, p:164)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Re: Error message on homepage
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! ;)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
Care to let me know what the actual cause is?
--
mats
- Jools
- Expert
- Posts: 16274
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 941
- My catfish: 237
- My cats species list: 87 (i:13, k:1)
- My aquaria list: 21 (i:13)
- My BLogs: 7 (i:10, p:167)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Error message on homepage
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.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?
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
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- Jools
- Expert
- Posts: 16274
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 941
- My catfish: 237
- My cats species list: 87 (i:13, k:1)
- My aquaria list: 21 (i:13)
- My BLogs: 7 (i:10, p:167)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Error message on homepage
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
All cleaned up now and Yann doesn't need to add a blog report to fix it!
Cheers,
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.