Support Forum

Removed moderator still displaying as moderator

BL Benny Lewis
Benny Lewis
Member

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!

9 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

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.

MP Mr Papa
Mr Papa
Member

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…

BL Benny Lewis
Benny Lewis
Member

“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?

MP Mr Papa
Mr Papa
Member

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…

BL Benny Lewis
Benny Lewis
Member

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!

YS Yellow Swordfish
Yellow Swordfish
Member

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….

MP Mr Papa
Mr Papa
Member

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..

BL Benny Lewis
Benny Lewis
Member

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)?

MP Mr Papa
Mr Papa
Member

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..