ZenphotoCMS Forum
Corrupt database? Stats says more images than uploaded - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Corrupt database? Stats says more images than uploaded (/thread-5550.html)



Corrupt database? Stats says more images than uploaded - mlavine - 2009-07-27

If I look at the stats for my gallery it says I have 68 images, even though I've only uploaded 36. During some searches, I've found images appear twice. If I delete one of those images and then reinstall it with the same tags and description, the galley image stats first decrease by 2 on the deletion and then increase by only 1 when I reupload. Could my database be corrupt - or could I have duplicate images inside my zenphoto directory structure that I need to purge?




Corrupt database? Stats says more images than uploaded - acrylian - 2009-07-27

Have you tried the "refesh database" button on the admin overview page?




Corrupt database? Stats says more images than uploaded - mlavine - 2009-07-27

Yes. It does not change the statistics.




Corrupt database? Stats says more images than uploaded - acrylian - 2009-07-27

What zenphoto version do you use? If it is not 1.2.5 you should update.




Corrupt database? Stats says more images than uploaded - mlavine - 2009-07-27

Sorry, I was going to add that to my original post but forgot.
I'm using zenphoto version 1.2.5 [4022]




Corrupt database? Stats says more images than uploaded - sbillard - 2009-07-27

How are you deleting the image?




Corrupt database? Stats says more images than uploaded - mlavine - 2009-07-27

I've either used the administration tools to delete the image, or I simply move it out of the catalog folder and then move it back using a FTP tool. If I use the latter technique I then reload the main catalog in a separate Firefox tab. Using either method, I then restore the old comments by hand, using cut and paste from a separate text file, and then re-tag the image. Either deletion method seems to give the same effect.

As the number of images in the db are small, if necessary I can simply regenerate all the images and text files, and hope that whatever I did before to cause this problem doesn't happen again. I don't want this to turn into a time sink for anyone, as I may have cause this weird problem merely but uploading the same images more than once or some such error, which I'm unlikely to repeat again now that I've set up a better way to edit my php files offline.




Corrupt database? Stats says more images than uploaded - sbillard - 2009-07-27

Please intstall the 1.2.6 RC1 and do a database refresh. Let us know if the problem is then solved.




Corrupt database? Stats says more images than uploaded - mlavine - 2009-07-27

It did not solve the problem, but I'm okay with simply closing this case.




Corrupt database? Stats says more images than uploaded - sbillard - 2009-07-27

What are you using to look at the stats for your gallery?




Corrupt database? Stats says more images than uploaded - mlavine - 2009-07-28

The zenphoto admin overview tab and statistics tab.