• Resolved danielcho

    (@danielcho)


    Hello,
    We recently created a new test environment for our site and noticed that it was sending out a large amount of emails to our users, and when we redirected all emails from this site to one of our teams’ emails, we realized that it was sending thousands of emails for single notifications. Looking at the notifications logs, it looks as though it was sending en email to every single user via the “Users who selected “Notify me” for the content” workflow on a post’s publishing. Editing the notification to only send to the authors stopped this behavior but we’re not sure why it’s not sending to only users who wanted to be notified.
    Also, I’m not sure if this is connected but I did notice that the page to edit notifications was very slow, and would often crash the tab I was opening it on. I think this might be because we have a very large amount of users that the page might be querying for?
    I also noticed that the notifications log was giving us errors when loading some scheduled notifications and would give us a “There has been a critical error on this website. Please check your site admin email inbox for instructions.” error in one of the columns for a notification, and then stop loading the rest of the notifications.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @danielcho ,

    Thanks for using PublishPress Planner.

    Editing the notification to only send to the authors stopped this behavior but we’re not sure why it’s not sending to only users who wanted to be notified

    Could you please try this troubleshooting guide?

    https://publishpress.com/knowledge-base/troubleshooting-notifications/

    Also, I’m not sure if this is connected but I did notice that the page to edit notifications was very slow

    Please try this suggestion: https://publishpress.com/knowledge-base/slow-loading-notification-screens/

    I also noticed that the notifications log was giving us errors when loading some scheduled notifications and would give us a “There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Kindly enable debug mode on your site so you can know whats the error is. You can read more about this here: https://wordpress.org/documentation/article/debugging-in-wordpress/#wp_debug

    Thread Starter danielcho

    (@danielcho)

    Hello,
    I looked at those troubleshooting guides but from what it appears, those don’t really seem to address the issues we described as far as I can tell. The first one seems to discuss options to try and troubleshoot if you’re not getting notifications sent properly, but as far as we can tell, they’re sending just fine, we’re just sending them to every user for some reason despite not every user having signed up for notifications on those posts. The second one seems very helpful, but I’m not seeing the “Blacklisted taxonomies for Notifications” setting in that menu at all.
    I was able to get the errors from the scheduled notifications log however:


    PHP message: PHP Warning: Attempt to read property “slug” on array in /var/www/wp-content/plugins/publishpress/modules/notifications/notifications.php on line 1571

    PHP message: PHP Warning: Attempt to read property “slug” on array in /var/www/wp-content/plugins/publishpress/modules/notifications/notifications.php on line 1571

    PHP message: PHP Warning: Attempt to read property “name” on array in /var/www/wp-content/plugins/publishpress/modules/notifications/notifications.php on line 1542

    PHP message: PHP Warning: Attempt to read property “name” on array in /var/www/wp-content/plugins/publishpress/modules/notifications/notifications.php on line 1542

    PHP message: PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 56639488 bytes) in /var/www/wp-content/mu-plugins/drop-ins/hyperdb/db.php on line 1448

    PHP message: Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 56639488 bytes) in /var/www/wp-content/mu-plugins/drop-ins/hyperdb/db.php on line 1448 [dev.hercampus.com/wp-admin/admin.php?page=pp-notif-log&status=scheduled] []

    Thank you

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @danielcho There is error related to memory size. Could you try increase your PHP memory limit and start again from there?

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved. If you have any further questions, please reply again here, or you can start a new thread.

    Thanks,

    Thread Starter danielcho

    (@danielcho)

    @rizaardiyanto
    Hello, sorry for reopening this, but we are still experiencing the issue I originally mentioned in regards to emails being sent out to EVERY user under the guise of the “Users who selected “Notify me” for the content” workflow on a post’s publishing. I’m not certain that that the memory issues are a priority for us but fixing this issue of mass emails is.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @danielcho Could you please clarify your expected output in this case? Are you looking to send notifications to a specific user or something else?

    Thread Starter danielcho

    (@danielcho)

    @rizaardiyanto We would like it to send the notifications to the users that actually selected to be notified via the “Notify me” for the content. Currently it’s being sent to all users, including those that didn’t choose to be notified.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @danielcho How do you test this?

    I cannot replicate this issue in our testing.

    Here what I have:

    • Notification when a post being updated
    • I have user Admin and user A
    • I set user Admin to “Stop notifying me”
    • I update X post from user A
    • The notification did not send notification to user Admin

    If needed you could also check this option:

    Thread Starter danielcho

    (@danielcho)

    Hi,
    Sorry, we’re not actually entirely sure what’s causing it or how to replicate it as it seems to happen randomly with articles that don’t seem to have been updated or published recently at all. We only knew it was happening because of the email forwarding we did on our testing site and aren’t entirely sure that it isn’t happening to every user on our production site right now which is why we’re worried. It stopped for a while after the first time it happened after we contacted sendgrid and asked them to cancel all the pending emails, but it happened again recently and aren’t sure what’s going on.
    Also regarding the steps you listed, does that mean that by default the plugin sends notifications to everyone via an opt-out, rather than sending it to only a few people via an opt-in?
    Here’s a screenshot of the notification settings we have by the way in case it helps:

    Also here’s a screenshot of the email inbox when we were getting flooded with emails in case it helps:

    Thank you.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Honestly, this behavior is not typical for our plugin. The situation appears to be more complex and may require further troubleshooting.

    Unfortunately, asking for login details is against the guidelines of this forum (WordPress.org Forum Guidelines).

    Our Pro users have the advantage of accessing our private helpdesk, allowing for direct troubleshooting on their sites.

    Considering the complexity of the issue, we recommend upgrading to the Pro version so we can address and troubleshoot it directly on your site.

    If you prefer to keep using the free version, we will need the exact steps on replicating this on fresh WordPress installation.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Notification being sent to all users’ is closed to new replies.