When adding an image under certain conditions, the table appears to go wrong. This shows itself by having a "next" arrow that leads to a "no image" ("Hacking attempt")
The conditions for this is:
1. The image is not added last - so we replace an existing image.
2. The OLD image of that position is placed in a position not the last image.
My theory is that there are TWO images with the same ID.
In the S. camelopardalis:
http://www.planetcatfish.com/catelog/sp ... ies_id=225
You can actually see that it's got TWO identical images, both with the number 2.
This causes the image with number 5 to be in position 6, and the script thinks there is another image, but we're already at the end of the list.
[Not saying "I told you so", but I think this is what I tried saying when I was code-reviewing for the "uber-bug"].
--
Mats
Image data table broken when adding images...
- 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.
- 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: Image data table broken when adding images...
Jools, do you believe this to be fixed now? [I haven't tried it lately].
--
Mats
--
Mats
- Jools
- Expert
- Posts: 16280
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 941
- My catfish: 237
- My cats species list: 88 (i:13, k:2)
- My BLogs: 7 (i:10, p:167)
- My Wishlist: 23
- Spotted: 451
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Image data table broken when adding images...
I do think I have fixed this. However there are four paths through the code, so I may have fixed one or more of those paths but not all four. However I may have fixed them all, it was tested the wrong side of midnight.
Use it, but pay attention to the results and report here? I will see if I have images to add to test also.
Jools
Use it, but pay attention to the results and report here? I will see if I have images to add to test also.
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- Jools
- Expert
- Posts: 16280
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 941
- My catfish: 237
- My cats species list: 88 (i:13, k:2)
- My BLogs: 7 (i:10, p:167)
- My Wishlist: 23
- Spotted: 451
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Image data table broken when adding images...
Move to resolved as this really does look fixed now.
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.