
General Error When Editing Species Profile
- Shovelnose
- Posts: 1254
- Joined: 03 Sep 2008, 09:49
- My articles: 5
- My images: 116
- My catfish: 4
- My cats species list: 60 (i:4, k:0)
- Spotted: 44
- Location 1: Mumbai
- Location 2: India
General Error When Editing Species Profile
I am getting this error when I try to add data to the Conta pectinata page (species just added). I am guessing it has something to do with the nature of data I have added in a particular field but I am unable to figure out what exactly it is.


Balaji
Major: Now what's this... stone, stone, stone, (looks down at his hand) and scissors. Now. Scissors cut everything, don't they?
Sergeant: Not stone, sir.
Major: They're very good scissors!!
Major: Now what's this... stone, stone, stone, (looks down at his hand) and scissors. Now. Scissors cut everything, don't they?
Sergeant: Not stone, sir.
Major: They're very good scissors!!
- 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: General Error When Editing Species Profile
It does indeed seem like it's something going into the Literature (aka "references") field. Any chance you can post what you was using for this field?
--
Mats
--
Mats
- Shovelnose
- Posts: 1254
- Joined: 03 Sep 2008, 09:49
- My articles: 5
- My images: 116
- My catfish: 4
- My cats species list: 60 (i:4, k:0)
- Spotted: 44
- Location 1: Mumbai
- Location 2: India
Re: General Error When Editing Species Profile
<em>Conta pectinata</em>, a new erethistid catfish (Teleostei: Erethistidae) from northeast India
Heok Hee Ng.
Range extension of <em>Conta pectinata</em> Ng, 2005 (Teleostei: Sisoridae) in upper Brahmaputra River drainage in Arunachal Pradesh, India, Lakpa Tamang & Shivaji Chaudhry.
I am guessing its the '&' symbol???
Heok Hee Ng.
Range extension of <em>Conta pectinata</em> Ng, 2005 (Teleostei: Sisoridae) in upper Brahmaputra River drainage in Arunachal Pradesh, India, Lakpa Tamang & Shivaji Chaudhry.
I am guessing its the '&' symbol???
Balaji
Major: Now what's this... stone, stone, stone, (looks down at his hand) and scissors. Now. Scissors cut everything, don't they?
Sergeant: Not stone, sir.
Major: They're very good scissors!!
Major: Now what's this... stone, stone, stone, (looks down at his hand) and scissors. Now. Scissors cut everything, don't they?
Sergeant: Not stone, sir.
Major: They're very good scissors!!
- 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: General Error When Editing Species Profile
I'm pretty certain the & is OK. It looks like it may not be "plain text" from the "\xnn\xmm\xpp" bits at the beginning of the error message quoted bit. Would you be able to copy and paste the text of the actual error message (I think you've downscaled the picture, so I can't quite read it properly).
Otherwise, I'll have a play when I get home (don't want to edit an existing species... ;) )
--
Mats
Otherwise, I'll have a play when I get home (don't want to edit an existing species... ;) )
--
Mats
- Shovelnose
- Posts: 1254
- Joined: 03 Sep 2008, 09:49
- My articles: 5
- My images: 116
- My catfish: 4
- My cats species list: 60 (i:4, k:0)
- Spotted: 44
- Location 1: Mumbai
- Location 2: India
Re: General Error When Editing Species Profile
Replaced '&' with 'and' but the error still persists.
General Error
SQL ERROR [ mysql4 ]
Incorrect string value: '\xEF\xAC\x81sh ...' for column 'literature' at row 1 [1366]
An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
Please notify the board administrator or webmaster: [email protected]
General Error
SQL ERROR [ mysql4 ]
Incorrect string value: '\xEF\xAC\x81sh ...' for column 'literature' at row 1 [1366]
An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
Please notify the board administrator or webmaster: [email protected]
Balaji
Major: Now what's this... stone, stone, stone, (looks down at his hand) and scissors. Now. Scissors cut everything, don't they?
Sergeant: Not stone, sir.
Major: They're very good scissors!!
Major: Now what's this... stone, stone, stone, (looks down at his hand) and scissors. Now. Scissors cut everything, don't they?
Sergeant: Not stone, sir.
Major: They're very good scissors!!
- 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: General Error When Editing Species Profile
I've figured it out:
catfish
has the "fi" as one character (symbol or whatever you want to call it. Try selecting the "f" and you'll notice that it will only select either both f and i or none....
To fix:
If you remove the fi and write that out as f and i, rather than the single fi symbol.
I will see if we can make a permanent fix in the code that deals with this.
--
Mats
catfish
has the "fi" as one character (symbol or whatever you want to call it. Try selecting the "f" and you'll notice that it will only select either both f and i or none....
To fix:
If you remove the fi and write that out as f and i, rather than the single fi symbol.
I will see if we can make a permanent fix in the code that deals with this.
--
Mats
- Jools
- Expert
- Posts: 16273
- 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 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: General Error When Editing Species Profile
\xnn is a way to represent the hex value (nn) of an ASCII character outwith of the normal set. In my view, this should fail gracefully rather than rely on tricksy conversion/encoding etc. Or, to put it another way, don't want extended ASCII in the dbase.
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: General Error When Editing Species Profile
We don't want extended ascii, or not UTF-8 - the "fi" ligature is valid utf-8, and we may want other UTF-8 characters, such as the ü in Isbrücker or í in Río Amazonas.Jools wrote:\xnn is a way to represent the hex value (nn) of an ASCII character outwith of the normal set. In my view, this should fail gracefully rather than rely on tricksy conversion/encoding etc. Or, to put it another way, don't want extended ASCII in the dbase.
Jools
I agree, it should definitely fail gracefully in case of something that doesn't actually work, but I'd say it's correct to accept some types of UTF-8 "extended characters".
Unfortunately, my promise to look at this was delayed by a friend's daughter calling on my mobile with "My dad's tank is full of dead fish, and dad said to call you...". So I spent an hour or so cleaning my friends filter and changing a bit of water. Fish looked much happier when I left... I then had to do some more soldering for special wires I'm doing for work - can't bring the soldering iron to work, as it's not PAT tested and elf and safety officials probably don't like hot things in an office anyways...
I'll have a look now...
--
Mats
- 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: General Error When Editing Species Profile
I have looked at this and can reproduce the problem. Thought I had a fix, but it doesn't appear to work right now. Will have another look at it tomorrow - time for bed now...
--
Mats
--
Mats
- Jools
- Expert
- Posts: 16273
- 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 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: General Error When Editing Species Profile
What I meant above is that shouldnt such characters be stored in the dbase as HTML entities rather than in their specific character set?
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: General Error When Editing Species Profile
Except, there is no 'fi' ligature in HTML, as is there no support for a vast number of other Unicode characters. In the posts above, the u-umlaut are not ü, but just a single character, and likewise the fi is just a sequence of UTF-8 encoding, not a &# or &filigature; or whatever it should be as HTML code. Or do you mean it should be written as the corresponding &#nnn number?Jools wrote:What I meant above is that shouldnt such characters be stored in the dbase as HTML entities rather than in their specific character set?
Jools
--
Mats
- 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: General Error When Editing Species Profile
This is still outstanding, but I'm not sure if it's actually required to be fixed. It's a year and half since we saw this, and I don't believe we've hit it again. It's annoying, but is it worth spending time fixing?
--
Mats
--
Mats
- Jools
- Expert
- Posts: 16273
- 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 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: General Error When Editing Species Profile
Mats,
Well, your recent Danio update appeared also to fail from the same issue?
Jools
Well, your recent Danio update appeared also to fail from the same issue?
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: General Error When Editing Species Profile
Dario, not Danio ;)Jools wrote:Mats,
Well, your recent Danio update appeared also to fail from the same issue?
Jools
But yes, that appears to be a problem, so perhaps I need to do look at it. Awaiting the DB dump tomorrow.
--
Mats
- 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: General Error When Editing Species Profile
Ok, the vetting side is fixed in R1297 (I also made one other small update to the fishbase fetching code, as it used the same rather obvious name for a similar function).
It may need the same treatment in the data_sub.php...
--
Mats
It may need the same treatment in the data_sub.php...
--
Mats
- 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: General Error When Editing Species Profile
R1298 contains a fix for "missed one place where it was used" from the original code.
R1299 contains the fix for the original data-sub problem. It should now be fine to enter almost anything in a datafield that you could possibly type on a computer. Whether it displays correctly at the other end is a somewhat different matter, but at least it shouldn't give any direct errors.
--
Mats
R1299 contains the fix for the original data-sub problem. It should now be fine to enter almost anything in a datafield that you could possibly type on a computer. Whether it displays correctly at the other end is a somewhat different matter, but at least it shouldn't give any direct errors.
--
Mats
- Jools
- Expert
- Posts: 16273
- 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 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: General Error When Editing Species Profile
Well, it got the update in, but I don't think it looks right...
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: General Error When Editing Species Profile
That post refers to before the R1302 fix, right?
--
Mats
--
Mats
- Jools
- Expert
- Posts: 16273
- 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 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: General Error When Editing Species Profile
Mats,
Nope, R1302 (and R1303 is now online and issue persists). I will email you a screenshot...
Jools
Nope, R1302 (and R1303 is now online and issue persists). I will email you a screenshot...
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: General Error When Editing Species Profile
So, I think R1304 fixes this.
--
Mats
--
Mats
- Jools
- Expert
- Posts: 16273
- 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 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: General Error When Editing Species Profile
Yes, resolved.
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.