Advertisement:

Author Topic: Moderator/Administrator not receiving Posts Awaiting Approval emails  (Read 820 times)

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
SMF version 2.0.15
email used - PHP

(This topic seems to have been raised several times some while ago and apologies if as a newbie I have missed a posting that answers my problem - if so please point me in the correct direction)

I have recently installed and configured a forum and all is working well with the exception of emails to moderator and administrator for posts awaiting approval.

All other emails (user notification of new posts/replies/reset password/registration approval/etc) and the testmail.php supplied elsewhere on the forum all seem to be working. No errors in logs.
Approval Notifications in Scheduled tasks running hourly.

Moderator in Global Moderators group and permissions for Moderator all set to allow as follows:
Moderate board      
Approve items awaiting moderation
Access the moderation centre
Moderate forum members
(and those settings will be by default for Administrator anyway)

For moderator and Administrator in Profile/Notifications:
'Receive forum newsletters, announcements and important notifications by email' and 'Enable notification when I post or reply to a topic' set to Allow
Dropdowns set to
'For topics and boards from which I have requested notification, notify me:'  Instantly
'For topics and boards from which I have requested notification, notify me of:' Replies and Moderation

Have I missed something here - it all seems to be as it should be.
Any help much appreciated....


Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #1 on: December 21, 2017, 12:39:58 PM »
Please just to make sure, see Admin -> Maintenance -> Scheduled Tasks -> Approval Notifications and make sure the task is enabled.
If it is - then see Admin -> Maintenance -> Scheduled Tasks -> Task log and check when the task was last run?
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #2 on: December 21, 2017, 01:33:34 PM »
Hi and thanks for the response.

Yes approval notifications is enabled, the task is enabled and in the task log the process is logged as running hourly as per my settings.
However the time taken is zero seconds, from which I assume no data was found to send!
I have also noticed from the task log that the daily notification summary time taken is invariably zero seconds. (This may be due to users having their notification parameters set to 'instantly')
All other mail functions seem to working perfectly

I am totally puzzled.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #3 on: December 21, 2017, 01:38:17 PM »
The time taken may not tell much really.

Next, please check Moderate -> Preferences -> Change settings

Do you have "Notify of items awaiting approval" checked?
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #4 on: December 21, 2017, 01:45:40 PM »
Hi again
Yep, checked, and notify of topic reports set to 'always'

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #5 on: December 21, 2017, 01:47:57 PM »
No, not topic reports - Items awaiting approval. The last option on that page.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #6 on: December 21, 2017, 01:50:48 PM »
Yes, that last item is checked (enabled)

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #7 on: December 21, 2017, 01:56:34 PM »
Now I'm really running out of ideas to check in the settings side of things to be honest.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,148
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #8 on: December 21, 2017, 02:02:39 PM »
maybe if the email template was modified in the wording it may send. i have heard of some email providers stopping emails from being received due to wording of the email getting it flagged as spam or worse.

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #9 on: December 21, 2017, 02:04:09 PM »
You and me both!
I was fairly confident that I had the settings correct.
I am now thinking to install a clean version from scratch, but of course it will need to be attached to the same database - if the error is in a data table then I will be no further forward....
Thanks for your help anyway

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #10 on: December 21, 2017, 02:06:27 PM »
maybe if the email template was modified in the wording it may send. i have heard of some email providers stopping emails from being received due to wording of the email getting it flagged as spam or worse.

Hi and thanks. Worth a look.
Strange though that all the other mails are getting through

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #11 on: December 21, 2017, 03:13:52 PM »
I think that's worth a shot, perhaps also worth trying if it would reach you easier with a longer interval... At this point, with no errors one can only guess.
But if you do find a fix, let us know too :)
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #12 on: December 21, 2017, 03:39:01 PM »
Just tried a couple of tests by creating a new test post as user.
I then logged in as admin, went to scheduled tasks and selected 'run now' for the task. That worked fine, the emails went to the queue and then sent correctly and were received within a minute.
I did the same for the daily summary and that worked too.

The problem must be with running the task against a schedule.
I realise that there is no cron job against the clock and the schedule needs an event to trigger it, but surely a user just logging on or a guest viewing the forum should do it?
Any ideas??
« Last Edit: December 21, 2017, 04:05:32 PM by spike_h »

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #13 on: December 22, 2017, 12:32:52 AM »
As far as I know, the tasks should only be logged as run if they were in fact triggered and run. This seems like an odd issue. Do the other scheduled emails all work nornally? This is really the only one misbehaving?
Perhaps try giving it some more time, create unapproved topics and posts, and wait more than one scheduled interval to see if anything happens.
« Last Edit: December 22, 2017, 12:49:31 AM by Aleksi "Lex" Kilpinen »
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #14 on: December 22, 2017, 03:59:30 AM »
No - other scheduled emails (daily summary/weekly summary) do not appear to be sent - as admin I do not receive them - although they are logged as such.
All non-scheduled emails work (registration, newtopics/posts, forgotten password etc)

And yes, have created test topics/posts and given it as much as 12 hours to see if it works, but no luck.
Other scheduled tasks are logged as having run - cannot be sure they actually have, although 'download simple machines files' sometimes has a time taken of 1-5 seconds so I presume it is doing something.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,148
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #15 on: December 22, 2017, 05:14:27 AM »
is your forum a public forum or private forum? the scheduled tasks need users to be active on the forum at or near the scheduled time for them to actually run, if no one is on the forum using it even spiders or guests the task will not run.

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #16 on: December 22, 2017, 05:22:40 AM »
Hi
Many thanks for the info - it is a small private forum.
When you say active 'on or near' -just how near? And does the task not run next time there is activity after the scheduled time?

If the system does not resend the notification once sent, then maybe I could set the schedule to a much shorter time? (EG 15 mins)

This would seem to be a SMF limitation for small users, unless there is a way (a mod?) of running the notification immediately after a new topic/post requiring moderation is added (as phpBB3 does)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,403
    • StoryBB/StoryBB on GitHub
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #17 on: December 22, 2017, 05:28:18 AM »
If they are logged as having completed in the log, the task itself run. This suggests either there is a problem with the preferences of the users, and/or they're disappearing into spam filters.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline spike_h

  • Semi-Newbie
  • *
  • Posts: 12
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #18 on: December 22, 2017, 05:35:31 AM »
Thanks for your comment
User preferences checked and OK.
I have been wondering regarding spam filters, although certainly not picked up in email spam folders and the sender address is listed as safe sender/safe domain and in the user address book. If spam filtering is the culprit then it is not getting past the incoming mail server.

My other thought is that the forum is hosted on a sub-domain, and the administrator email address is not one from that domain. I have known in the past of mail failures due to this - a possibility maybe??

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Moderator/Administrator not receiving Posts Awaiting Approval emails
« Reply #19 on: December 22, 2017, 01:05:17 PM »
Do you have the possibility to try this? It's worth a check to see if that is the cause.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas