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
No stats - sp_ForumStats Error log
Avatar
pixelduck
Guest
Guests
Jan 28, 2012 - 9:17 am

First of all, this is a great plugin. Really nice work you've all done. 🙂

I've been working on SP locally and didn't really have any issues, but now that I've moved to a \"live\" site, I'm having one issue with the forum stats. No stats at all. I took a look at the error log and this is what is coming up:

file: /simple-press/forum/content/sp-common-view-functions.php
line: 2072
function: sp_ForumStats
Notice | Trying to get property of non-object

The site isn't public yet, so it isn't really a problem at the moment but I thought I would report it.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2012 - 12:35 pm

well, that is not an error... just a notice...  which build of sp?  I cannot correlate that to a specific line of code...

assume whatever sp theme you are using has the stats template tags in place (assume so since it worked locally)...

also, keep in mind that the stats are cached...  so may take an hour to update...

Avatar
pixelduck
Guest
Guests
Jan 28, 2012 - 3:19 pm

It is build 7781. The site has been up for well over 24 hours now (I know the stats are cached). Anyway, not to worry. I'll just wait and see if it fixes itself.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2012 - 3:48 pm

do you have a link so we can see what it looks like??

check your sfoptions table in db and see if you have options for:

spMostOnline
spForumStats
spMembershipStats
spPosterStats
spRecentMembers
spModStats
spAdminStats

and when they were last updated... can you also verify that the wp cron stuff is running?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 28, 2012 - 4:52 pm

...additonally what SP theme are you using? Just ask this because the iForum theme doesn't include the stats at all.

andy-signature.png
YELLOW
SWORDFISH
Avatar
pixelduck
Guest
Guests
Jan 29, 2012 - 5:22 pm

I don't have a link (not a public one anyway, though I could make a temporary log in for it).

I checked the sfoptions table as you said and only two options from that list exist (spMostOnline and spRecentMembers, both of which do work in the stats area... so seems like a problem with the options not being there). Cron seems fine though.

As to the theme, I've made my own customised theme (mix of css-only, stacked and my own modifications), although the same problem exists whatever theme is used. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 29, 2012 - 5:35 pm

can you deactivate the sp plugin and then reactivate it? wont lose any data... and it should start the stats cron jobs up if they somehow died off...

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626