Is there a way to rebuild the entire thumbnail index in one go?
RayKinStL
Joined: 2013-08-05
Posts: 8 |
Posted: Fri, 2014-01-10 17:15 |
So somehow at our gallery site http://www.parkwayart.net/art/gallery/ we had the entire "Elementary" thumbnail folder get deleted (not sure how), so all thumbnails in that album were broke. I recovered the folder, but a lot of the thumbnails are still broken. Unfortunately we seem to have had the folder deleted around December 31st, and people did work on January 2nd, moving and archiving, and new stuff didn't get thumbnails created since the folder didn't exist. I'm looking for a way to just tell the system to go through every image in the Elelmentary folder and recreate the thumbnails index. I found the Rebuild Images module, but you have to do that on an album by album basis, and that would be very time consuming if that is the only option. Is there a trick or workaround for this? Unfortunately I am still on 3.0.1. Any help is greatly appreciated. Thanks! |
|
Posts: 27300
What you could do is just change the thumb size by one pixel and it should rebuild them. It will be the whole gallery not just the one sub album.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
Thanks for the response. When you say change the thumb size, are you talking about the line in Advanced Settings in the Dashboard that says....
"gallery thumb_size 201"
If so, I changed it from 200 to 201, but that didn't anything for my thumbnails. Perhaps you meant somewhere else?
Posts: 814
One you have changed it, go in to Admin then Maintenance, and it should show a rebuild items task needing to be run.
Posts: 8
Well this is one of my other problems, but I didn't post that here. When I go there, it says "You have 84 out of date photos" but if I run the maintenance, it doesn't fix any of the 84. The status bar runs, but it still shows 84 out of date. On top of that, I am pretty sure I have more than 84 images with broken thumbnails in the Elementary folder at this point. I'm really worried I am going to have to rebuild this from scratch and re-upload everything. I can't see any other way to fix this.
Edit: Here is the log file, if that helps anything.
Posts: 27300
No.
Admin-> Apperance -> theme options-> thumb size.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
OK, thanks for that. I feel like I am starting to get somewhere. It did start rebuilding all the images, which was great. But there are two quirks. First of all, it thinks it is almost done (99%) when it is 5196/6560 images. Also, it has stalled out multiple times at 5196 and won't seem to go any further. I am including a screen shot attachment. Any ideas? Thanks for all your help on this.
Posts: 27300
Logs?
Resuming the task get further?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
I have tried resuming the task multiple times. It doe not progress any further. Log file is attached (I had to zip it for size).
Thanks!
Posts: 27300
There is a few errors like:
You need to verify that the gallery3/var/ directory and all the files and folder in it are writable by the web server. Your host can help with that or some ftp clients have a recursive setting for setting permissions for all files and folders. This is most likely most of the issue as you:
[quote thumbnail folder get deleted (not sure how), so all thumbnails in that album were broke. I recovered the folder
in your recovery the permissions where not set correctly.
Also there is a few:
and similar files. Not sure how that hapened but I guess you need to find the Zach F5 image and see if it actually exists.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
OK so my problem is much more dire than I realized. Let me try to briefly explain what happened and then you can tell me if there is any fix other than starting over. So as I said above, we lost the Elementary folder in the thumbs directory. We pulled a restore from when the directory existed, but this happened about 6 days after we realized it was missing. 2 days after it was missing, there was a day where people who add/organize folders did a bunch of archiving that resulted in new photos being added and old photos being moved, without the Elementary thumbs directory. We did not maintain a backup of the database, so when we restored, the database no longer matches the restore we pulled. This has resulted in all sorts of things broken at the Elementary level. We now have a gallery installation that is totally out of whack from the database, resulting in Elementary being broken. Is there anything that can be done, or does it need to be scrapped and reloaded entirely.
Posts: 120
So according to the database in the filesystems Elementary folder, it has
I suspect you are going to have to do some sql queries and filesystem directory dumps in order to reconcile the two. That way you would be able to find which items have been moved where and which items are completely missing.