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
Forum Stats and User Stats Not Changing
Avatar
Chris Palmer
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 10:28 am

For some reason our User stats and forum stats are not incrementing at all

I have the feeling its due to some permission issue as we recently had to harden the server 

Where should I start?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 10:37 am

Hey Chris,

Well here's a couple of places to start-

Firstly, are you running any new plugins since you noticed the problem?

Secondly, can you go to Forum > Toolbox > Cron Inspector, and see if sph_stats_cron is running?

Avatar
Chris Palmer
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 12:46 pm

sph_stats_cron shows a next run date of August 26, 2014 (over a month ago) which is very odd. The schedule is set to the SP Stats Interval which is 3600

Unfortunately we have installed a variety of plugins (most of them security related). I have disabled them all apart from wordfence. I have the feeling that one of the prior security plugins has modified a permission somewhere which is probably causing the problem. We did restrict the PHP functions as follows:

disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source

Would this affect it?

 

I'll did into the Cron a little deeper.

 

Thanks!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 2:46 pm

Unfortunately I think the permissions problem you will probably have to try and figure out, as in, probably not something we can help with, although I'm sure if someone knows of anything that could directly affect the stats section they will post.

I think we are safe with the disabled functions. It doesn't look like we use any of them in the core plugin.

As for cron, firstly try disabling the Simple Press plugin and enabling it right away (NOT delete).. This should force the SP cron tasks into the WP cron scheduler.

Avatar
Chris Palmer
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 2:51 pm

I'll give that a shot.

 

Appreciate the support!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 3:03 pm

No problem, let us know how you get on

Avatar
Chris Palmer
Member
Free Members
sp_UserOfflineSmall Offline
Sep 26, 2014 - 4:15 pm

I did as suggested. It took a little while as re-activation was failing and I had to go through each plugin to see what was causing the issue. It was the WP "The Events Calendar" for whatever reason.

 

Anyways, I have re-activated and the CRON is now set to run in the future (as opposed to a month ago).

I'll let you know if its working once the cron interval passes.

 

Cheers.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 26, 2014 - 4:29 pm

the plugin sounds familiar...  think it might be the one that has an identically named routine as ours... if so, could cause things to fail...

Avatar
Chris Palmer
Member
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2014 - 7:07 pm

In the end the problem was that wp-cron was disabled in wp-config.php

I presume one of the security related plugins we installed added the "disable" line to the config file.

Since I commented out the line, everything is working again.

 

Cheers!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2014 - 8:46 pm

ah, good to hear... thanks for the update...

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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625