My cats database error

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
pleco_breeder
Posts: 892
Joined: 09 Dec 2003, 16:51
My articles: 2
My cats species list: 17 (i:0, k:0)
Location 1: Arizona
Interests: breeding plecos and corys
Contact:

My cats database error

Post by pleco_breeder »

I've tried several times to add info for my L100 tank, and consistently get the following error message after clicking "Save and Publish".

SQL ERROR [ mysql4 ]

Data truncated for column 'size_sl' at row 1 [1265]


Larry
Impossible only means that somebody hasn't done it correctly yet.
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: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: My cats database error

Post by Jools »

Hi Larry,

You don't have any aquaria records to add to? Are you trying to create a new record? If so, which link are you using to get an initial "add aquaria" page and once you've filled it out, would it be possible to post a screenshot of the data you have typed in immediately prior to clicking submit?

Cheers,

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: My cats database error

Post by MatsP »

size_sl is part of the BREEDING record, so probably not involving "My Aquaria".

I'm still not entirely sure what is going on here, so a bit of "I go to <some place>, click on the link <something>, and enter <stuff> in field <name of field> then ..." would definitely help.

Edit: Realized that size_sl is actually part of "My Cats", not "My Blog". So, with that knowledge, I tried entering some random things in the size field, and happy to report I have just reproduced the problem. If I type "90mm" into the "size field" of the "My Cats" editing page, it fails. I will look into this tomorrow - shouldn't be difficult to fix, really.

--
Mats
User avatar
pleco_breeder
Posts: 892
Joined: 09 Dec 2003, 16:51
My articles: 2
My cats species list: 17 (i:0, k:0)
Location 1: Arizona
Interests: breeding plecos and corys
Contact:

Re: My cats database error

Post by pleco_breeder »

Sorry,

Probably should've noted that it was an attempt to add to the "my cats" list but was running a bit late and getting very frustrated.

Larry
Impossible only means that somebody hasn't done it correctly yet.
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: My cats database error

Post by MatsP »

R750 should fix this particular problem. I'm looking at other places that do similar things.

--
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: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: My cats database error

Post by Jools »

Larry,

I've put this fix online. Can you confirm it's fixed?

Cheers,

Jools
User avatar
pleco_breeder
Posts: 892
Joined: 09 Dec 2003, 16:51
My articles: 2
My cats species list: 17 (i:0, k:0)
Location 1: Arizona
Interests: breeding plecos and corys
Contact:

Re: My cats database error

Post by pleco_breeder »

The fix worked perfectly. Data posted.

Thanks,

Larry
Impossible only means that somebody hasn't done it correctly yet.
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: My cats database error

Post by MatsP »

R753 contains updates to "blog", validating all numeric inputs on the page with (more) correct error messages.

I will try to do the my_aquaria in the same vein tomorrow, as there are some coding improvements in the code, and it should really be the same everywhere.

[Probably should be added to the Data Sub pages too?]


--
Mats
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: My cats database error

Post by MatsP »

I've now implemented the more complete checking for my_cats and my_aquaria as well.

In R755.

--
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: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: My cats database error

Post by Jools »

That's online now too.

Cheers,

Jools
Post Reply

Return to “All Resolved Issues”