ZenphotoCMS Forum
Phantom unpublished photos? - 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: Phantom unpublished photos? (/thread-12357.html)



Phantom unpublished photos? - tplowe56 - 2015-11-05

I have over 8,000 images in 161 albums. All photos and albums are published yet on the admin overview page it reports 5,394 unpublished images.

I have run the publish content plugin which reports 0 unpublished images. Any ideas what is causing the discrepancy.

I'm investigating slowness issues so I'm cleaning up my gallery and looking at all issues.




Phantom unpublished photos? - acrylian - 2015-11-05

If you haven't try a database refresh in case the file system and database are out of sync. That's a button on the overview page.




Phantom unpublished photos? - tplowe56 - 2015-11-05

Yes, I've tried that. And also checked the database on the back end using MySQL check/repair. It's not a big deal. Just wondering why the ZP admin is reporting that erroneous number, while the publish-content plugin reports correctly.




Phantom unpublished photos? - acrylian - 2015-11-06

We will take a look if we can reproduce it.




Phantom unpublished photos? - MarkRH - 2015-11-06

Hmm.. yeah in my Overview page it says 31 Unpublished images but
select * from images where images.show = 0;
Only returns 15 images. I wonder where it's getting the additional numbers?




Phantom unpublished photos? - acrylian - 2015-11-06

Do you have unpublished albums with published images? Because of inheritance those would be "unpublished" as well. That's what the method getNumImages() is returning.




Phantom unpublished photos? - MarkRH - 2015-11-07

Hmmm.. yes I do.. and the numbers match that way. I have a private album with 17 private unpublished albums below that.




Phantom unpublished photos? - fretzl - 2015-11-08

So far we found 1 typo that caused an incorrect number of un-published images (fix in the Support build)
However that doesn't explain the issue @tplowe56 is having.
Still investigating...




Phantom unpublished photos? - MarkRH - 2015-11-09

Ahhh.. numbers look better:
650 Images (331 un-published)
34 Albums (19 un-published)