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.
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
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.
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] []
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.
@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.
@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.
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: