1 (edited by mrjw34 2016-08-10 22:49:26)

Topic: Duplicate folders

I've run into this issue ever since I started using Showkase and can't figure out why it happens.
I will look at my site/server in an ftp program and find multiple versions of a folder called "Gallery". Just today there were 54 folders! All of the folders have the setup of folders/files a normal Showkase folder has when published albeit without any images.
I can delete all the folders but when I just did that and re-published the site, about 50 or so new 'Gallery" folders were created

Why does this happen?

Also I've noticed under Hidden pages there are multiple copies folders in the Showkase UI of folders that don't exist any more, and none of those duplicates are visible on the server via ftp.

*Just published my site again after making some changes and found 93 folders called "Gallery" had been made.

*Cleared out anything that says Gallery, published again and I now have 17 folders called Galleries and 98 that say Gallery

Re: Duplicate folders

I'm not sure why this might be happening. I've not seen it happen before and, as far as I can remember, no one else has reported such an issue.

... about 50 or so new 'Gallery" folders were created...

... 93 folders called "Gallery" had been made.

It sounds like, whatever the problem is, it doubles the number of duplicate folders on each iteration.

How are the duplicate folders named? This might give us a clue as to how they are being created.
For example, if you have a gallery page named 'gallery', are the duplicated folders on your server named 'gallery-2', 'gallery-3', etc. or do they use a different format such as 'gallery (2)', 'gallery (3)', etc.?

Take a look at your showkase/_data/pagesdata.txt file in a plain text editor. I expect you might find all the duplicate folders listed in here.
If so, and your Showkase site is self-contained in its own folder (with no non-Showkase content in the Showkase root directory), then the following might work.

(1) If you are not already using the latest version of Showkase (v1.6.1), please upgrade following the Upgrading Showkase instructions.

(2) Manually delete any duplicate folders on your server that you know are not part of your actual Showkase site.

(3) Run 'System -> Repairs -> Repair' to rebuild the page records.

If this does not work, here are a few other things to try.

Try installing a fresh Showkase site into a new subdirectory on your server to see if the same thing happens with this new site. As long as you install the new site into a folder of its own, it should not interfere with your existing site and it will be self contained (so it can easily be deleted after testing if necessary).

If duplicate folders are created within the new site, then this would suggest that the problem is somehow related to your web server or its settings (although I would really need access to both your server and existing Showkase site in order to try to determine the cause of the problem).

If the new site seems to function OK without creating duplicate folders, then you could perhaps use this site as your main site and import the pages from your original site (via Showkase's 'Site -> Import' functionality) to avoid the need to recreate them from scratch.
You could then move the new site into the location of the original site (deleting the original site first) by following the Changing Your Installation Directory instructions.

Hopefully the suggestions above will help.

Important note:
Please take a full backup of your existing site before trying any of the above, just in case anything goes wrong and you need to reinstate your original files at a later date.

Re: Duplicate folders

OK, the System-Repairs seems to have worked. I'll keep an eye out to see if that is the case and the situation doesn't reappear.

Thanks!

Re: Duplicate folders

Thanks for the update.
I hope that's solved the problem for you.