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: 6704
Joined: Tue Sep 09, 2014 5:50 pm
I've donated: $40.00!
My articles: 4
My images: 65
My cats species list: 107 (i:37, k:43)
My aquaria list: 30 (i:14)
My BLogs: 35 (i:120, p:1816)
My Wishlist: 39
Spotted: 131
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 C016.

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
http://youtube.com/user/Bekateen1
Would you like to buy my fish? Click HERE for prices.
Buying caves from https://plecocaves.com? Plecocaves is now sponsoring Bekateen's Fishroom. Use coupon code "bekateen" (no quotes) for 15% off your order.
User avatar
bekateen
Posts: 6704
Joined: Tue Sep 09, 2014 5:50 pm
I've donated: $40.00!
My articles: 4
My images: 65
My cats species list: 107 (i:37, k:43)
My aquaria list: 30 (i:14)
My BLogs: 35 (i:120, p:1816)
My Wishlist: 39
Spotted: 131
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
http://youtube.com/user/Bekateen1
Would you like to buy my fish? Click HERE for prices.
Buying caves from https://plecocaves.com? Plecocaves is now sponsoring Bekateen's Fishroom. Use coupon code "bekateen" (no quotes) for 15% off your order.
User avatar
Jools
Expert
Posts: 14971
Joined: Mon Dec 30, 2002 3:25 pm
My articles: 190
My images: 913
My catfish: 243
My cats species list: 89 (i:0, k:6)
My aquaria list: 2 (i:2)
My BLogs: 7 (i:5, p:194)
My Wishlist: 18
Spotted: 975
Location 1: M8
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