I have two buttons!
https://luengogaztelu.com/showkase/Screenshot%202023-03-28%20at%2022.45.53.png

I've not hacked PHP in years, thanks for pointing me in the right direction. It has been thoroughly tested, works like a charm.

-------

As a matter of interest. I have discovered that in a showkase gallery with only one 'page' the mystery resort does not happen.

In a showkase gallery with lots of pages, it happens every time. Even though the other pages are not involved, other than being there. How that fits with the multithreading concept I have no idea.
-------

Steve, if you want to test out the new buttons the steve test server and gallery is still up and running access details the same, but due to the fewer pages the sort issue does not replicate.

I will email you the hacked files, just so you have them. No support expected at all. That was a fun challenge, thanks again for facilitating it.

Thanks Steve,

That is excellent, I will give it a try out and let you know how is goes. I appreciate you can't support it, but I do like getting under the hood!

Thank you, much appreciated.

all the best :-)

Hi Steve,

Thanks for confirming that I am not going insane, and for your kind attention.

I've will delete the server in due course, feel free to keep my galleries for as long as you need them.

I would really like to push for a regenerate images only option on rebuild, for more advanced users such as myself. As the image names don't change in any of the directories (Large, Small and Images root), there is no need to update the XML (etc) files.

As a stop gap work around, I have just zipped up the following files in my test gallery.
config.xml
index.html
images.txt
page.xml
preferences.txt

After rebuilding my gallery, I have just unzipped them to over write the new versions, and bingo the sort order is restored.

This is useful to me, but I expect few people will have my issue. I just had a gallery with no watermarks on it, and wanted to only upload the changed pictures, rather than reimport the gallery and start from scratch. Given the amount of time spent on this, I may as well have, lol!!

I have no doubt messing about with the showkase directories and content is generally a very bad idea and is frowned upon, but this gets the job done for me. I don't expect to be doing it very often.

----

As a matter of interest, your multi-tread explanation does seem to fit. I couldn't replicate the problem on shared hosting today, I guess that it was not busy or alternatively it was too busy, perhaps affecting the speed that images were processed (pure speculation).

cheers for now

Hi Steve

I have sent you an email with everything you need. Access to a staging server custom built just for you, with a clone of the showkase install. You have full access in every respect. If you can't replicate the bug on that, I will be astonished, as I have just tested it and the reorder happens exactly as reported. You are free to do whatever you want.

Also a download link to the zip of the gallery if you want to test it on your own server as well. I would appreciate it if you delete it all when you have finished.

Remember this has happened on my old apache server and this one which is Lightspeed (not sure what the difference is).

I haven't launched the gallery to the public as yet, still a work in progress.

I look forward to hearing from you, please confirm that you received the email.

Thanks

What ho Steve,

Thanks for your reply, firstly this is a curiosity not a deal breaker. I am surprised given that we are both using the same build that it is not replicable at your end. I have one comment on this:

An initial 'Pages -> Edit Page -> Advanced -> Rebuild' rebuilt the gallery and changed the image order (to filename order) but retained image titles and captions.
All subsequent 'Pages -> Edit Page -> Advanced -> Rebuild' actions did not change anything at all.

To fully replicate the issue, you need to upload a gallery from Lightroom, import it. Then having made no changes to anything at all, rebuild the gallery using 'Pages -> Edit Page -> Advanced -> Rebuild'. I do not use the sort feature in showcase, the screen shots were to show you the order, I have not actioned any 'sort by' options.

I sort my images in Lightroom, the thumbnails in ShowKase are too small to work with. (Same goes on the images page. I wish the previews were bigger there, easier to work with.)

It must be to do with the Lightroom plugin, I will have a look see if there are any options for sort. I don't recall any.

I would be happy to make a zip file for you to test out, do you want me to email you the link, I don't see any PM option on here.

I'll give you the directory structure, including the Lightroom upload for you to import, so you can do the whole thing.

I'd go as far as to give you login on my staging server if you like.

I'll make that zip file.

Hi Steve,

Just out of curiosity, the first time I had the problem
(https://showkase.net/forum/viewtopic.php?id=473)
with the Mystery Reorder of images it was on an apache server.

This current one is on a Lightspeed server.

It would really great if you could produce a 'script' that just regenerates the images.

7

(93 replies, posted in Showkase Support)

I would like a button that regenerates the images, without regenerating the XML. Thus avoiding the order of images being changed.

https://showkase.net/forum/viewtopic.php?id=475

Well...

I updated the showKase with a freshly unzipped copy.

I rebuilt the gallery 'test for steve' and I am afraid that the order of the images changed again.

Here is the original order as uploaded by Lightroom, and imported by Showkase
(sorry the screen shots a bit large, but I have to go to a meeting, I will fix that later if I have time.)
https://luengogaztelu.com/showkase/Screenshot%202023-03-24%20at%2012.46.42.png


Here are three screen shots of image orders after three rebuilds, I notice that the thumbnails have changed ?!

https://luengogaztelu.com/showkase/Screenshot%202023-03-24%20at%2012.24.08.png
https://luengogaztelu.com/showkase/Screenshot%202023-03-24%20at%2012.24.30.png
https://luengogaztelu.com/showkase/Screenshot%202023-03-24%20at%2012.24.50.png

If I may chip in.

If you use Safari and activate develop mode, there is a menu option to Empty caches which saves a heck of a lot of time when building a website. Although I generally use Chrome day to day, I have Safari open all the time, exclusively for that.

If you don't see the Develop menu in the menu bar, choose Safari > Settings, click Advanced, then select “Show Develop menu in menu bar”.

Hi Steve,
Thanks for your reply.

The simple answer is that I replaced (successfully) the large images, in the large images folder in the existing gallery.

Then I rebuilt the gallery using the rebuild gallery option in that gallery (see screen shot).

For clarity on my last post, for ease of use I used Lightroom to upload the gallery to a 'staging' upload directory outside the showkase root directory, as you recommended in previous advice. Then transferred by hand just the images from there to the large directory. I needed to rebuild the gallery to generate the small and medium images, as discussed Lightroom does not do that.

I used ftp to put the images in the 'large' directory/folder. Very simple operation. This was a correlation, but not the causation, it is a red herring as it makes no difference, see below.

------

Okay:

  • As an experiment, I have uploaded the a test gallery from light room so it is a new page., and I can go through it step by step with you.

  • I have imported it following the instructions from the my 'gallery_uploads' directory (which as I have said is. not in the root directory of showkase)

  • I added my captions etc

  • I have published the gallery

  • The images are in the same order as they were in Lightroom

  • I have rebuilt the page/gallery having made no changes what so ever to anything in showkase, nor on the server

  • The order of the images has changed

  • I have rebuilt AGAIN the gallery having made no changes what so ever to anything

  • The order of the images has changed again

  • I have rebuilt once more the gallery having made no changes what so ever to anything

  • The order of the images has changed again

  • it appears to be randomising the images on each rebuild.

  • I have checked in customise viewer and Pro Viewer Options to make sure that randomise images is not checked, and it is not, and never has been, I like to choose my own order of images to tell a story. ;-)

  • The page content is carried over, this is what I wanted to preserve, as have the captions etc, but the image order has changed thank for your advice on captions but I miss spoke. I will being using captions on images as you suggested in due course thank you. You didn't waste your time.

For the record, I love showkase, I love the fact that it is XML driven, to the extent that I have got a new hosting account which is much faster, just so I can really enjoy it without the restrictions of the crappy snail slow host I was using before.
I draw this to your attention as it is a odd bug. I hope that I have explained clearly what I have done, and how you should be able to replicate it.

I have reinstalled showkase as you advised, and I am working on a staging server at this moment. As far as I can tell it is an uncorrupted install. But after I have posted, I am going to reinstall it one more time and redo my tests to see if it makes any difference. If it does I will post below.

Thanks as always for your kind help and support.

Okay

I have uploaded my gallery using the Lightroom plugiin, but I realise (for example) that I forgot to put my watermark on them.

I thought I would be a smart arse and reuplaod my gallery, having made the change (to my outside of ShowKase upload directory as you recommended). I copied just the images, and replaced the images in the 'large' directory and rebuilt the gallery, so far so good. New images are displayed.

BUT.. the order has changed!

Now, I would have just uploaded and replaced the entire gallery, BUT... I have spent a while adding witty titles and so on in showKase online (as there is understandably no way I can see to do that in Lightroom, and save it, feel free to tell me I am wrong, I am all ears).

So here is the question, all I have changed is the images, they all work perfectly so the names are clearly correct. The captions etc are still there, I can view the big versions no problem. BUT the order has changed!

What do you think Steve? I mean, that's life I get it, but curious don't you think?

Thanks Steve

I set up a directory showKase_upload one level up (I have numerous sites on my server) that worked a treat, good idea.

For those interested: An example path for uploads a level up  "../showKase_upload" then scan.

Choose that directory path for uploading from Lightroom, creating an appropriately named subfolder.

Thanks Steve for your exhaustive reply, you are a champion.

I have messed around a little in ftp and the sever file manager, this might explain how I have caused this issue. I've not uploaded via FTP by hand, only using the Lightroom plugin. But I have deleted the odd gallery that I uploaded and did not want, as I had made changes. This would be prior to importing them, so I kind of assumed that it would make no difference.

As for the weird resort of my galleries. It happened after I repaired the entire entire site, what was odd is that one gallery 'got better' and another didn't. It's not a big deal, I just re-uploaded from Lightroom, and order was restored. I will look carefully if it happens again.

I did do a reinstall as well.

As for images in posts here on the forum, I tried that. I am more than familiar with bbcode etc. The forum has no links allowed in posts, this seems to include IMG tags, I uploaded the screen shot to one of my servers, but to no avail. You may want to look at that, as only you have the keys.

As always thank you for your kind help.

(Edit: comment moved to correct topic)

I've been using the lightroom plugin which is very useful.

I have noticed that some strange rogue galleries have spontaneously appeared in the root directory (see attached screen shot or not, seems that images are switched off and I can't upload a file as am attachment as is possible in Juicebox forum).

Thats a file list, you see the gallery-3 etc. Just appeared by themselves.
viewers admin cgi-bin chelsea desert-mountain-t.
galleries gallery gallery-2
gallery-3
gallery-4
gallery-5
gallery-6 general-melonry ibcore mfc-chicken more-melonry music-2

after a site rebuild some of my galleries image order changed for no apparent reason, which was frustrating.

Any idea why these two things have happened.

I deleted the rogue galleries, and some more appeared.

Thanks

15

(16 replies, posted in Showkase Support)

I had this exact same problem, thanks for the fix.

16

(7 replies, posted in Showkase Support)

Thank you very much for taking the time to resolve this issue.

I have galleries with literally thousands of images, for which I need to use the file name for titles. But it was not working as I expected, and was becoming a real headache.

The solution for max_input_vars, using .htaccess to up the number to 20,000 variables, my server was set to 1,000. The problem was solved, and what I saw as an insurmountable problem and on the surface a limitation of showKase / JuiceBox, was in fact just a limitation of my host.

I can not express my happiness when 4,000 images were titled in literally seconds, and that was just one page!

php.ini was not available for me to edit, but the .htaccess trick with the line "php_value max_input_vars 20000" sorted it out.

Absolutely delighted, thanks for the great support.