Page 1 of 2

cat e logue homepage bugged

Posted: 24 Dec 2012, 19:54
by Bas Pels
It looks like the Cat E Logue homepage is down/ bugged.

If I enter throguh the front paga, I get a message, 'covnersion failed [ok]' (including the typo) which will not go away. I needed control alt delete to get out of it

Getting back, though the kitchendoor - I used a link, which worked, the homepage gave the precise same result.

I use IE explorer, 9.0.8112 and so on

Re: cat e logue homepage bugged

Posted: 24 Dec 2012, 20:25
by Birger
Working normal for me on Firefox

I think the tech department dudes b-) were working on stuff today.

Birger

Re: cat e logue homepage bugged

Posted: 24 Dec 2012, 21:09
by Jools
I can't get any error (using MSIE 10). Can you post a screenshot please? That specific page hasn't been changed in ages, but some of the things it uses may have been altered recently however nothing springs to mind.

Cheers,

Jools

Re: cat e logue homepage bugged

Posted: 24 Dec 2012, 22:44
by MatsP
1. It works for me (in Firefox and Google Chrome - don't have IE on my Linux machine)
2. The text with the typo doesn't exist in our code - not sure where it comes from.

Does it still happen to you?

--
Mats

Re: cat e logue homepage bugged

Posted: 24 Dec 2012, 23:40
by Viktor Jarikov
Everything described in the OP to the letter has been happening to me for two days straight. My PC had installed some update probably shortly before this started happening. I run IE version 9.0.8112.16421 update versions 9.0.12

Re: cat e logue homepage bugged

Posted: 25 Dec 2012, 08:31
by Bas Pels
Thanks, Victor

That's precisely what I get. Could be due to our - similar - browser. However, IE explorer is still one of the most used

Re: cat e logue homepage bugged

Posted: 25 Dec 2012, 19:56
by krazyGeoff
Hi,
I can get the same issue on IE9 but ok on Safari
I get the issue by hovering on the Cat-eLog menu item, then selecting the Bagridae family:
http://www.planetcatfish.com/catelog/fa ... amily_id=8

Clicking OK on the error message 52 times makes it go away, and then at that point the page appears to function as normal.

Another way to get it is to go the the Cat-eLog main page.
Then select "All Catfish Families" ordered by popularity

depending on which family you select next will determine the number of times that you need to push the ok button on the error message to get it to go away.

for the Scoloplacidae family you need to push the ok button 7 times, for loricariidae, you need to push the ok button over 100 times. Obviously some loop is running.

Cheers

Re: cat e logue homepage bugged

Posted: 25 Dec 2012, 20:40
by Jools
Ah, ok, it's not the cat-eLog homepage but a family page. Think it's a mapping issue, will investigate.

Jools

Re: cat e logue homepage bugged

Posted: 25 Dec 2012, 23:28
by MatsP
I know which line in the code prints the message (I didn't realize it had a upper case C in "Covnesion", so searched for lowercase one). Typo is fixed, but I still need to understand what is wrong with the data transmitted, as it works on both Firefox and Chrome on my machine). But I can look at the raw data to see if there's something funky with it.

Edit: Jools - R918 contains a small change to the relevant code - fixes the typo and shows the data that couldn't be converted, so may help debugging!

Edit2: Seeing if I can set up a Windows VM on my experiment machine to try IE...

--
Mats

Re: cat e logue homepage bugged

Posted: 26 Dec 2012, 19:04
by Jools
BP or Viktor,

Mats' change is now uploaded. Can you post another screenshot please? It should have more info in it to assist debugging.

Cheers,

Jools

Re: cat e logue homepage bugged

Posted: 26 Dec 2012, 21:47
by krazyGeoff
New error message reads:
Conversion failed...undefined

So three dots and then the word undefined.

Note this happens before the "facebook like" page counter appears, in the top left corner, but I guess you already know that :d
There is no other text or anything that I can see, and I am unable to scroll the page, to check if there is any info at the bottom.
I am now on IE8
Also note that there is now one extra "ok" click required. (but that could be meaningless)
Is it worth pointing out that the google map at the bottom of the page is always just a blue colour and there is no land mass on it???

Cheers

Re: cat e logue homepage bugged

Posted: 26 Dec 2012, 22:25
by MatsP
Ok, that helps a little bit - but not as much as I hoped - I really need to get this reproducing on my machine.

Will try to get it going...

--
Mats

Re: cat e logue homepage bugged

Posted: 26 Dec 2012, 23:44
by Viktor Jarikov
No change on my end. Doesn't matter which family I go to:

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 00:01
by MatsP
Viktor, you may want to press CTRL-F5, it seems like it's caching the old JavaScript that has the typo in it.

--
Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 01:23
by Viktor Jarikov
Hi Mats! Unless I did not understand exactly what you had advised me to do:
-- when I did Ctrl+F5 on this page, it just reloaded the page;
-- when I did it on the Cat-eLog page with the error message, nothing happened.

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 08:09
by Bas Pels
apart from the typo, the same happened.

It's not family related, I encountered the problem the first time on Loricaridae (looking for Hisonotus)while Victor was on Bagridae

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 08:27
by MatsP
Right, so the ONLY thing I've changed so far is to fix the typo in "Conversion" and adding the thing we're trying to convert to be printed after the word failed. I was hoping that would tell me what it was that was going wrong, but from Geoff's output, it looks like it's trying to use something "undefined" - I expected to see something that looked a bit like a number (it is trying to convert a string as part of a coordinate system, e.g. "3.51231"or "-56.1219" - since that's the only 'things' that are converted in this place - the printout happens when that conversion fails for some reason).

I am still struggling to get Windows running in a VM, but I haven't spent a HUGE amount of time on this.

--
Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 09:45
by Jools
Mats,

Noted. This might assist? If not then I'd suggest I have a crack at debugging it Mats as I have the environment? What do you think? It's affecting ~35% of users of the site, so probably priority.

As a side note for everyone else experiencing the error, all other browsers don't show the error. You may wish to consider swapping, at least temporarily.

Jools

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 11:00
by MatsP
I ran the code through jslint, which complained about a bunch of things which aren't a problem (like using ++ instead of += 1 - makes no sense). I don't think this is a "lint" problem (although I wouldn't be surprised if it's something to do with compatibility and different browsers having different JS implementations). I'm slightly concerned however that it's a problem in actually receiving the data (that is, the data is either mangled or incomplete), which would be a harder problem to fix.

Feel free to debug. I'm at work at present, so although I have a Windows VM here that can reproduce the problem, I'm not able to do much about it.

--
Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 11:39
by MatsP
Did some googling while waiting for something. I think I know what the problem is... It's kind of convoluted, but I can fix it quite quickly - I think.

--
Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 11:54
by Jools
Well, I'm looking at it just now. It appears to be that the textContent property of the content object is undefined. I'm currently learning how to either test to avoid this or perhaps do some sort of variable declaration that avoids the problem. Will I leave it for now?

Cheers,

Jools

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 12:19
by MatsP
I think I've fixed it in R920 - at least it works in IE9 with that fix (and in Chrome).

It's a little more code [and I took the oppurtunity to move a few things around that weren't where they should be, logically]

Fix found here:
http://stackoverflow.com/questions/6649 ... sbytagname

--
Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 12:35
by Jools
Another MS anomaly safely navigated! Thanks Mats.

OK guys, that's the techno-chatter done with, can you confirm the issue is now resolved?

BTW, this work by Mats introduced the new species mapping tool that you can see under the shiny new "Distribution of selected species" section on the family pages. This gives a quick and easy visual view of where a family of catfish is found (and readily highlights gaps and errors in the map data). I need to tart it up a little bit and will then announce it formally.

Cheers,

Jools

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 15:14
by Bas Pels
it does look fised: I could visit the Loricaridae page and go to Hisonotus

Thanks, Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 16:53
by MatsP
Excellent! Did you like the "map" by the side of the list of species...

--
Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 18:33
by krazyGeoff
Hi MatsP,
Nice work.
I'm on IE8 now as at work.
The error messages have gone away.
However so has the map.

I get this error (I have some error setting on, so I get the done with errors on page messages in the bottom left corner of the browser)

------Start of error message
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Thu, 27 Dec 2012 18:25:13 UTC


Message: 'DOMParser' is undefined
Line: 163
Char: 2
Code: 0
URI: http://www.planetcatfish.com/common/jav ... ultimap.js
------End of error message
I'm not sure if it really matters that much, IE8 you don't get the map.....

Cheers

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 18:55
by Viktor Jarikov
The Cat-eLog errors have gone away for me too. Thanks much, Mats and Jools!

I can see the maps just fine. They are a nice addition.

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 18:58
by MatsP
Geoff, if you promise to buy me a beer next time we're in the same place (November, maybe?), I'll see if I can fix this just for you... :)

--
Mats

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 20:32
by Bas Pels
I hadn't noticed it, but I do like it.

However, being especially interested in Uruguayan fishes, it's a disappointment to se no Uruguayan loricarids are taken in the Cat-elog.

There are plenty, Loricaria, Rhineloricaria, Otocinclus, Hisonotus, Ancistrus, Hypostomus to name the few genera I have held in very own hands.

I was loking for Hisonotus to veryfy which species I could have bred - but for lack of data, it will remain unclear. I only know where I collected them - in this case in 2006

Re: cat e logue homepage bugged

Posted: 27 Dec 2012, 20:37
by krazyGeoff
MatsP wrote:Geoff, if you promise to buy me a beer next time we're in the same place (November, maybe?), I'll see if I can fix this just for you... :)

--
Mats
Hi Mats,
Sure I'll buy you a beer b-)
Not sure this year whether I'll be able to do November, depends on a number of things that may be out of my control.....

Cheers