• Resolved racosgrave

    (@racosgrave)


    We are using this plugin to send notifications to users involved in our topics. We set it so a certain role receives a message for all new topics and replies. Most of the time we receive multiple notifications and this morning was ridiculous with over 10 email messages sent to various people.

    What is causing these duplicates, I understand how WP CRON runs…but are we not setting a running flag to prevent this or is it something deeper / with the configuration?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author useStrict

    (@usestrict)

    Hi @racosgrave,

    When bbpnns builds the list of recipients, it creates an array consisting of $user_id => $user_info, meaning that there will be a single message sent to each user.

    A few things to look at while troubleshooting are:

    1. Install WP Mail Log to see what is actually leaving the server
    2. Check to see if any other plugins could be sending messages
    3. As you’re using Roles, make sure you’ve also got the Override Subscriptions to Forums/Topics enabled to stop bbpress from sending out its own notification.
    4. Check the duplicate messages’ headers for the X-Built-By header with the bbpnns signature. If it’s not there, then it wasn’t bbpnns that sent the duplicates.
    5. If none of the above hit the mark, please send me the information in the Support Tab so I can analyze it.

    Cheers,
    Vinny

    Thread Starter racosgrave

    (@racosgrave)

    Thank you @usestrict

    I can confirm #3 that that setting is checked for both topics and replies

    Can confirm in #4 that that header is there (from the 2 random ones I picked)

    Just installed the WP Mail Log(ger) and will see what that shows when this happens again

    Proactively here is the info from the Support Tab:

    
    array(4) {
      ["BBPNNS Settings"]=>
      array(19) {
        ["newtopic_email_subject"]=>
        string(40) "mySITE New Topic Posted '[topic-title]'"
        ["newreply_email_subject"]=>
        string(33) "mySITE Reply to Subscribed Topic"
        ["newtopic_email_body"]=>
        string(342) "
    Hello [recipient-first_name]!
    
    A new topic has been posted in the mySITE forums
    
    [topic-title]
    [topic-excerpt]
    
     
    
    Click here to view the topic
    
     "
        ["newreply_email_body"]=>
        string(558) "
    Hello [recipient-first_name]!
    
    A reply has been posted to a topic you are subscribed to
    
    [topic-title]
    [reply-excerpt]
    
    Click here to view the reply
    
    Click here to view the topic
    
    To unsubscribe from these emails please visit [topic-url] and click the 'Unsubscribe' button."
        ["newtopic_recipients"]=>
        array(1) {
          [0]=>
          string(21) "SITE_forum_moderator"
        }
        ["newreply_recipients"]=>
        array(1) {
          [0]=>
          string(21) "SITE_forum_moderator"
        }
        ["encode_subject"]=>
        bool(false)
        ["newtopic_background"]=>
        bool(false)
        ["newreply_background"]=>
        bool(false)
        ["background_notifications"]=>
        bool(true)
        ["default_topic_notification_checkbox"]=>
        bool(false)
        ["default_reply_notification_checkbox"]=>
        bool(false)
        ["override_bbp_forum_subscriptions"]=>
        bool(true)
        ["override_bbp_topic_subscriptions"]=>
        bool(true)
        ["notify_authors_topic"]=>
        bool(false)
        ["notify_authors_reply"]=>
        bool(false)
        ["hidden_forum_topic_override"]=>
        bool(false)
        ["hidden_forum_reply_override"]=>
        bool(false)
        ["email_type"]=>
        string(4) "html"
      }
      ["Active Plugins"]=>
      array(38) {
        ["advanced-custom-fields-pro/acf.php"]=>
        string(6) "5.7.10"
        ["akismet/akismet.php"]=>
        string(5) "4.1.1"
        ["bbpress-notify-nospam/bbpress-notify-nospam.php"]=>
        string(5) "2.1.6"
        ["bbpress-slack-integration/jp-bbpress-slack-integration.php"]=>
        string(5) "0.3.1"
        ["bbpress-votes/bbpress_votes.php"]=>
        string(5) "1.0.0"
        ["bbpress/bbpress.php"]=>
        string(6) "2.5.14"
        ["black-studio-tinymce-widget/black-studio-tinymce-widget.php"]=>
        string(5) "2.6.6"
        ["cdn-enabler/cdn-enabler.php"]=>
        string(5) "1.0.8"
        ["classic-editor/classic-editor.php"]=>
        string(3) "1.4"
        ["custom-post-type-ui/custom-post-type-ui.php"]=>
        string(5) "1.6.1"
        ["disable-new-user-notifications/cwwp-disable-new-user-emails.php"]=>
        string(5) "1.0.2"
        ["disable-pw-admin-emails/disable-pw-admin-emails.php"]=>
        string(0) ""
        ["docebo-lms-elearning-platform-integration/docebo.php"]=>
        string(5) "1.0.3"
        ["duplicate-post/duplicate-post.php"]=>
        string(5) "3.2.2"
        ["easy-wp-smtp/easy-wp-smtp.php"]=>
        string(5) "1.3.8"
        ["enlighter/Enlighter.php"]=>
        string(3) "2.7"
        ["gd-bbpress-tools/gd-bbpress-tools.php"]=>
        string(5) "2.0.2"
        ["gd-bbpress-widgets/gd-bbpress-widgets.php"]=>
        string(5) "1.0.3"
        ["menu-items-visibility-control/init.php"]=>
        string(5) "0.3.7"
        ["option-tree/ot-loader.php"]=>
        string(5) "2.6.0"
        ["post-type-archive-links/post-type-archive-links.php"]=>
        string(5) "1.3.1"
        ["post-types-order/post-types-order.php"]=>
        string(7) "1.9.3.9"
        ["redirection/redirection.php"]=>
        string(5) "3.7.3"
        ["revslider/revslider.php"]=>
        string(7) "5.4.6.2"
        ["simple-link-list-widget/simple-link-list-widget.php"]=>
        string(5) "0.3.2"
        ["stops-core-theme-and-plugin-updates/main.php"]=>
        string(5) "8.0.3"
        ["taxonomy-terms-order/taxonomy-terms-order.php"]=>
        string(5) "1.5.5"
        ["ultimate-posts-widget/ultimate-posts-widget.php"]=>
        string(5) "2.0.7"
        ["user-role-editor/user-role-editor.php"]=>
        string(4) "4.49"
        ["user-switching/user-switching.php"]=>
        string(5) "1.4.1"
        ["what-the-file/what-the-file.php"]=>
        string(5) "1.5.4"
        ["wordfence/wordfence.php"]=>
        string(6) "7.1.20"
        ["wordpress-seo/wp-seo.php"]=>
        string(3) "9.5"
        ["wp-lightbox-2/wp-lightbox-2.php"]=>
        string(7) "3.0.6.2"
        ["wp-mail-logging/wp-mail-logging.php"]=>
        string(5) "1.9.1"
        ["wp-postratings/wp-postratings.php"]=>
        string(6) "1.86.2"
        ["wp-video-lightbox/wp-video-lightbox.php"]=>
        string(5) "1.8.8"
        ["SITE-login-controller/SITE-login-controller.php"]=>
        string(5) "0.0.1"
      }
      ["Network Active Plugins"]=>
      bool(false)
      ["Active Theme"]=>
      array(3) {
        ["Theme Name"]=>
        string(24) "Support Desk Child Theme"
        ["Theme Version"]=>
        string(5) "2.1.0"
        ["Theme URI"]=>
        NULL
      }
    }
    
    Thread Starter racosgrave

    (@racosgrave)

    Hello @usestrict

    I have confirmed via WP Mail Log that these emails are being sent > 1 time per user especially on replies

    Plugin Author useStrict

    (@usestrict)

    Please create a temporary admin user for me using vinny [at] usestrict [dot] net so I can have a look at the logs.

    Thread Starter racosgrave

    (@racosgrave)

    @usestrict I’m not going to be able to do that, I can upload some screenshots to a dropbox or something?

    Plugin Author useStrict

    (@usestrict)

    For troubleshooting I’ll need the following:

    • A pair of duplicate emails in .eml format so I can analyze the headers
    • Confirmation that you don’t have users with overlapping email addresses (some plugins allow you to do that) – you can query your users table with select user_email, count(*) from <users table> having count(*) > 1. If something shows up, then that’s why you’re getting duplicates.
    • If you don’t have any duplicates in the item above, and I can’t find anything in the headers, then we’ll have to add debugging to the code to see the list of recipients it’s using. This is best done on a staging site and we can discuss that over email instead.

    Cheers,
    Vinny

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘New Topics and Replies are sending multiple notifications’ is closed to new replies.