Error message when trying to upload a photo to CLOG

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
bekateen
Posts: 8957
Joined: 09 Sep 2014, 17:50
I've donated: $40.00!
My articles: 4
My images: 130
My cats species list: 142 (i:102, k:39)
My aquaria list: 36 (i:13)
My BLogs: 44 (i:149, p:2653)
My Wishlist: 35
Spotted: 177
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Error message when trying to upload a photo to CLOG

Post by bekateen »

Hi Jools,

Tonight I tried to add a photo to the CLOG page for .

When I did, the photo was rejected with this message:
Something went wrong, the selected new position is different from number of actual images. (seq_no=2, image_count=2) - please report.
Sorry,
Eric

Details:
Caption: Rio Ariari drainage
Reproduced from: Mendez-Lopez, A. et al. (2019). Sistemas de Humedales de la Cuenca MEDIA del GUAVIARE, DEPARTAMENTO DEL META- COLOMBIA PECES, ANFIBIOS y REPTILES de las Lagunas San Vicente y Loma Linda.
Attachments
Screenshot_20201230-212514_Drive~2.jpg
Image
Find me on YouTube and Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code "bekateen" (no quotes) for 15% off your order.
User avatar
bekateen
Posts: 8957
Joined: 09 Sep 2014, 17:50
I've donated: $40.00!
My articles: 4
My images: 130
My cats species list: 142 (i:102, k:39)
My aquaria list: 36 (i:13)
My BLogs: 44 (i:149, p:2653)
My Wishlist: 35
Spotted: 177
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Re: Error message when trying to upload a photo to CLOG

Post by bekateen »

Okay, that's weird. In spite of the error message, the picture upload appears to have been successful. That is very confusing.

Cheers, Eric
Image
Find me on YouTube and Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code "bekateen" (no quotes) for 15% off your order.
User avatar
Jools
Expert
Posts: 15978
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Error message when trying to upload a photo to CLOG

Post by Jools »

Seems like it was old bad data. Each image has a sequence number (seq no) which determines the order in which the images are shown. The best, single first larger image is shown is seq 1 and so on. The error is when the sequence number has gaps/shows an incorrect total. Historically there was an issue when this happened a from time to time which I never really got to the bottom of but appeared to resolve by some change I made. My suspicion is when the back button or browser history functions are used in conjunction with the admin pages.

Anyway, the image was added and looks OK to me. I also re-ordered the images on the page which is a good check everything is OK.

So, not a bug in the code, rather an error in the data which is fixed. That said, you're right to be cautious, this can cause merry hell with species where there are lots of images. Hopefully, we have seen the last of those (although, IIRC, Synodontis brichardi is one I need to fix at some point).

Cheers,



Jools
Post Reply

Return to “All Resolved Issues”