Filecount incorrect? Filecount incorrect?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Filecount incorrect?

Started by jp-photo.dk, October 30, 2006, 10:41:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jp-photo.dk

I've noticed on the mainpage of my galleri, that if I total the number of files and albumbs I don't end up with the same numbers as the summary on the bottom of the page?

A manual summary gives 7.506 files, and the summary states 9.333 files?

A link to the page is: http://galleri.jp-photo.dk/ [Note! Direct link is worksafe, but rest of galleri IS NOT!]


Joachim Müller


jp-photo.dk

But as Administrator should I not have access to all albums? Users are not allowed to create their own albums, so the only albums in the gallery are created by me.


jp-photo.dk

A couple of calculations found the problem. I have a category called "Heste" which states 1.947 files. In this category there are 4 subcategories which holds 1.827 files, add those to the 7.506 files reported on the mainpage as being in the categories the result comes to.. 9.333 files.

So a category only count files in albums in it, and not the albumbs in the catogorys subcategories. I'm not sure whether to call this a feature or a bug?

Joachim Müller

Missing feature - we're aware of this and decided not to add the load of even more queries just for the sake of exacty stats for sub-structures. After all, coppermine is a gallery app, not some stats app.