Stats not displaying. Stats not displaying.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Stats not displaying.

Started by koeppj, September 13, 2012, 10:16:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

koeppj

Running CPG 1.5_18 on with PHP 5.1.6 on RHEL 5.3 with MySQL 5.0.45.

I have stats configure to be captured but when I go to http://www.koeppster.net/scoutpics/stat_details.php?type=hits&sort=sdate&dir=&sdate=1&ip=1&search_phrase=0&referer=0&browser=1&os=1&mode=fullscreen&page=1&amount=50 no stats are shown and I get the following debug notices.  Anyone have any ideas?

------------------------------------------BEGIN DEBUG NOTICES--------------------------------------------------
/include/stats.inc.php
Warning line 242: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag
Warning line 243: array_sum() [function.array-sum]: The argument should be an array
Warning line 253: Invalid argument supplied for foreach()
Warning line 312: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag
Warning line 313: array_sum() [function.array-sum]: The argument should be an array
Warning line 323: Invalid argument supplied for foreach()
------------------------------------------END DEBUG NOTICES---------------------------------------------------


Jeff Bailey

Do you have any albums with pictures?

AFAIK you won't show any stats unless someone has viewed something on your gallery.
Those notices just mean you don't have any stats, they will go away as soon as you get at least one hit.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

koeppj

Quote from: Jeff Bailey on September 13, 2012, 10:30:01 PM
Do you have any albums with pictures?

AFAIK you won't show any stats unless someone has viewed something on your gallery.
Those notices just mean you don't have any stats, they will go away as soon as you get at least one hit.

Jeff.  Thanks for reaching out.  Yes.  I do have an album and a least one picture.  Running tests before I roll this out of the rest of the group.  Just double checked with a registered user.  Go to the album and view a photo.  Even request a full size image.  Then log out and log back as an Administrator.  Check the stats.  Nothing reported.

Jeff Bailey

upgrade to 1.5.20 first.

Works as it should on my testbed, although I tested it as a guest.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

koeppj

Just upgraded to 1.5.20.  Still getting the debug notices.  Still no stats

Jeff Bailey

Create an album that guests can see and see if that works.
You said you logged in as a registered user and it didn't work?
Create a test user as well and see if my hits show.

I don't know a lot about the stats sytem, maybe it remembered the admin IP and didn't record the hit. Also double check your settings and check the database for the correct tables and records.

Google analytics is an option if no one can figure this out.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

koeppj

Did that.  Created a test user (just registered) and an album with a photo.  That log in as that user and click on the photo.  An ranked it for good measure.  Then logged as as admin.  No stats.  Using mlsql checked both cpg15x_hit_stats and cpg15x_vote_stats.  Hit stats is empty but vote_stats has data in it.  And sure enough.  Stats page does show vote stats but not hit stats.  I'll keep digging.  I am using awstats so I do have a fallback.

Thanks for the help.  I'll did a little deeper and let the forum know if I find anything.  My PHP is a little rusty compared to Java but I love a good puzzle ;)

Jeff Bailey

I ment create a test user so I could log in and you could see if it recorded my hit.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

ΑndrĂ©

Quote from: Jeff Bailey on September 14, 2012, 11:46:44 PM
I ment create a test user so I could log in and you could see if it recorded my hit.

To make this absolutely clear: please post the test user login data so we can check that ourselves ;)