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
Removed moderator still displaying as moderator
Avatar
Benny Lewis
Berlin, Germany
Member
Free Members
sp_UserOfflineSmall Offline
Apr 25, 2013 - 10:04 am

Hi there! I have a strange problem - my main moderator decided to retire, and requested to be transferred to normal status. I went on to the Admins section of the forum panel, removed his features and updated it. Now I can see from MY end that he is no longer listed as a moderator.

On the forum itself though, he is indeed being shown at the bottom of the page among other moderators. This is a hassle as he is getting contacted by users who want him to solve issues that he now can't. Why did the forum not remove him from the publicly visible list of moderators when I can see that he is indeed no longer a moderator?

Help appreciated!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 25, 2013 - 11:14 am

So did you revoke this guy as a moderator by removing him from a 'moderator' flagged User Group? Which is really the only way to do so as such.

And - assuming that you did - then did you do this that long ago? The stats area at the bottom is cached and set, by default, to update once an hour. If you have not changed that timing and after an hour it has nit updated then this suggests that your WP Cron scheduling is not working.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 25, 2013 - 11:17 am

those stats are cached and run every hour to optimize web site performance... if you go to forum - toolbox - cron inspector, you can see the stats cron in the list.. copy the cron down to the run once section and run it... it should be updated then...

Avatar
Benny Lewis
Berlin, Germany
Member
Free Members
sp_UserOfflineSmall Offline
Apr 25, 2013 - 3:48 pm

"So did you revoke this guy as a moderator by removing him from a 'moderator' flagged User Group?"

Yes.

"then did you do this that long ago?"

MONTHS ago. He contacted me today to ask why his name is still showing up.

@Mr Papa

I'm not really sure what you mean. I went to the cron inspector and saw a log of various scans that had been run recently, a bunch done today. I don't know which hook to copy down to run now, but would it make a difference? I removed him from moderator months ago so surely the list should have updated by now?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 25, 2013 - 7:34 pm

should have updated by now? yes, if cron jobs are running on your system...  I do not know what you mean by log though??  there is no cron log... there is a list of the current ACTIVE jobs...  Is 'sph_stats_cron' listed in the active jobs?

In the run cron section at bottom, enter 'sph_stats_cron' without quotes and run it...  check the stats... still there?

check the db... the sfmembers table... for his user id, what is the value of the moderator column?  should be 0...

Avatar
Benny Lewis
Berlin, Germany
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2013 - 7:17 am

The only sph was sph_news_cron

So I entered sph_stats_cron without quotes and ran it and it confirmed it ran. I refreshed the forum page and now all is good and the moderator has been removed!

Do I have to repeat that process again in future if I add or change moderators?

Thanks for your help!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 26, 2013 - 8:07 am

No - you are clearly missing the WP Cron task list. Sadly - WP cron does have issues as a quick look at the WP support forums would quickly show.

I would deactivate simple:press (NOT uninstall of course) and then immediately reactivate it. It should rebuild the SP task list in the WP Cron scheduler

Of course if you are missing WP Cron tasks as well then I am actually not sure how those can be retrieved....

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2013 - 10:46 am

or alternately, on the same cron inspector task, you can start up the cron task yourself...  just pick the hook and a frequency (we use an hour)...  but if there are other SP ones missing, Andy's suggestion will kickstart all  of them..

Avatar
Benny Lewis
Berlin, Germany
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2013 - 12:50 pm

How do I find the hook relevant to what I want to do in future? To be honest I don't really understand what all this Cron stuff is and would hope that removing the moderator as I did would just remove him. What other crons are there to worry about? Will disabling and re-enabling the plugin fix such issues in future (without any annoying consequences)?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2013 - 1:26 pm

cant tell you what hook if you dont tell me what you want to do... unfortunately, wp cron stuff is a bit cryptic and not always stable on some hosts...  but its still the best way to do periodic things..

in this case, when the moderator was removed, we would need to update the cache instead of waiting for it to auto populate itself...  if you would rather the stats refresh on every page load and take the hit for db queries, I can give you a code segment to do that..

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