Error message on homepage

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
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

Post 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
Rick
User avatar
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:235, 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

Post 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
User avatar
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

Post 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
User avatar
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:235, 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

Post 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
User avatar
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:235, 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

Post 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
Post Reply

Return to “All Resolved Issues”