Support Forum

Forum Stats and User Stats Not Changing

CP Chris Palmer
Chris Palmer
Member

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?

9 Answers

New Answer

IK Ike
Ike
Member

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?

CP Chris Palmer
Chris Palmer
Member

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!

IK Ike
Ike
Member

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.

CP Chris Palmer
Chris Palmer
Member

I’ll give that a shot.

 

Appreciate the support!

CP Chris Palmer
Chris Palmer
Member

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.

MP Mr Papa
Mr Papa
Member

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…

CP Chris Palmer
Chris Palmer
Member

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!