text gibberish

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
lfinley58
Expert
Posts: 725
Joined: 04 Jan 2003, 19:16
I've donated: $90.00!
My articles: 3
My images: 3
Spotted: 3
Location 1: Margate
Location 2: Florida USA
Interests: Catfishes (all), Aquarium History

text gibberish

Post by lfinley58 »

Hello.

The following is found in the Cat-eLog entry for Chaetostoma breve:

The genus <em>Chaetostoma</em> is not straight-forward to identify, but as a general rule, the species has spines behind the gill-cover (interopercular odontodes), no plates on the abdomen, and aside from <em>C. platyrhynchus</em> also lack plates on the snout edge. Different from <em>Ancistrus</em> by not having fleshy tentacles on the snout.

Lee F.
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:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: text gibberish

Post by MatsP »

It has "HTML-ised" the HTML code. Which it shouldn't. Not sure why. Will have a look tomorrow, to see if there's anything obviously wrong there....

--
Mats
lfinley58
Expert
Posts: 725
Joined: 04 Jan 2003, 19:16
I've donated: $90.00!
My articles: 3
My images: 3
Spotted: 3
Location 1: Margate
Location 2: Florida USA
Interests: Catfishes (all), Aquarium History

Re: text gibberish

Post by lfinley58 »

Thanks Mats. I just wanted to make sure that a correct person was aware of the situation.
In honor of a recent busy thread, I give you a big old like.

Lee
User avatar
Jools
Expert
Posts: 16138
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
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: text gibberish

Post by Jools »

Thanks for reporting Lee, this will be because of a recent change I made, so it's good to understand the root cause as well as fix up that specific species entry.

Mats,

There were custom built html or extended character set encode/decode functions that you wrote that appeared to me to duplicate the native php functions designed for same which I guessed you had overlooked when writing the custom code. I am not 100% sure, but I think this will be the change that's caused this. I would be keen to understand this more (with you) as want to make it work, but keen to avoid pretty intricate code that does something very similar to an existing native command.

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:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: text gibberish

Post by MatsP »

Pretty sure the problem is in the first layer of code, where you enter the data and submit it to the DB. It looks HTML-ized in the database, and I think the problem is the request_var() that "encodes" things, even tho' we don't want it.

I will do some more digging today, as didn't get much done last weekend.

--
Mats
User avatar
Jools
Expert
Posts: 16138
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
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: text gibberish

Post by Jools »

Ok, thanks, I should have some "Planet time" this afternoon too (but hoping to add some articles and videos.

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:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: text gibberish

Post by MatsP »

I think changes in R1557-1559 will fix this problem (in fact, I tested it on my local setup, and it appears to work).

--
Mats
User avatar
Jools
Expert
Posts: 16138
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
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: text gibberish

Post by Jools »

So, the good news is the problem that creates the "gibberish" appears to be solved. Now, we just need to track down any occurences of it (post here please!) and anyone with data submission / edit permissions can submit an edit/fix.

Cheers,

Jools
User avatar
Jools
Expert
Posts: 16138
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
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: text gibberish

Post by Jools »

The genera , , , , and all had "gibberish" issues, which are now fixed. That would have put "gibberish" in all species entries for those genera as well as any CotMs for the catfishes. Furthermore, the species entry for was also afflicted.

All fixed now, which should put a serious dent in the problem. Please let me know of any others.

Cheers,

Jools
Post Reply

Return to “All Resolved Issues”