Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Stats not updating
Avatar
matthew horne
Rookie
Free Members
sp_UserOfflineSmall Offline
Sep 23, 2012 - 12:50 pm

Hi my simple press forum stats are not updating.

I looked in the error logs and I can see this repeatably.

I am unsure what the problem is, I know the cron is running.

 

Some server information.

Running php 5.3.16

Apache FCGI version 2.2.22

mysql version 5.5

Let me know if you need any other information.

 

September 23, 2012
6:43 pm
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 2090
function: sp_ForumStats
Notice | Trying to get property of non-object
September 23, 2012
6:43 pm
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 2089
function: sp_ForumStats
Notice | Trying to get property of non-object
September 23, 2012
6:43 pm
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 2088
function: sp_ForumStats
Notice | Trying to get property of non-object
September 23, 2012
6:43 pm
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 2087
function: sp_ForumStats
Notice | Trying to get property of non-object
Avatar
matthew horne
Rookie
Free Members
sp_UserOfflineSmall Offline
Sep 23, 2012 - 12:53 pm

Typicall, I seek outside help and it updates lol

I will let you know if the errors continue to report.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 23, 2012 - 2:18 pm

The notice is harmless -but yes annoying. I will be interested to know if it continues to show up once the stats updating kicks in.
The stats are cached and should update about once an hour...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 23, 2012 - 5:23 pm

also if you wait and not updating, check forum - toolbox - cron inspector and see if the stats cron job is running...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 6, 2012 - 1:01 pm

Similar issue here... a moderator pointed out that our post count stats in the forum footer are not updating. I then confirmed that post counts in member profiles are indeed out of sync with those in the stats. The count in the profile updates in real time. But even after manually running sp_stats_interval from the toolbox, the stats in the footer did not update and are still out of sync with those in the member profile.

Any tips for troubleshooting are greatly appreciated, I compared the following two template files but they seem to be calling stats differently...

spProfileShow.php

spFoot.php

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 6, 2012 - 1:37 pm

The stats are cached for obvious reasons and should update hourly. This update is performed with a WP Cron task. We have noted - and have a ticket open to investigate - that WP sometimes has the habit of losing track of Cron tasks.

The first thing to do is look at the Cron list from the forum admin > Toolbox menu. See if there is a task to update the stats in the task queue.

If there isn't then the easiest way to deal with this is to deactivate SP (NOT uninstall of course) and then immediately reactivate it. This should then rebuild the SP cron task list with WordPress...

See of that helps.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 8, 2012 - 1:07 pm

FYI: Three SP-related cron Schedules are listed:

Name | Description | Interval
sp_subs_digest_interval | SP Subscription Digest Interval | 86400
sp_stats_interval | SP Stats Interval | 3600
sp_news_interval | SP News Check Interval | 604800

Active Crons included:

sph_stats_cron
sph_transient_cleanup_cron
sph_subs_digest_cron
sph_news_cron

Stats in footer and profile are back in sync only after deactivating and reactivating SP plugin. The SP hooks in the Active Cron list are now bold, which I presume may mean they have never been run.

Thanks again, hope this helps.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2012 - 2:29 pm

As far as I am aware they are bold simply to show they are SP tasks but I can check with Steve who wrote that code...

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 8, 2012 - 3:05 pm

No worries, if there is no cause for concern. I just don't remember them being bold before plugin activation.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2012 - 10:56 pm

yes, any sp cron task is displayed in bold...  has always been that way...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625