Conversation
supportOn my topics notifications are sent twice, anyone have idea on what is causing the issue? Thank you
Do you have any other plugins that might change the sending behavior of those emails?
Hi Markus, We can’t find any. Is there any specific plugin that can interfere? We installed “Email Log” and that confirms that there are emails send out multiple times. What can we check? DB tables? WP-Cron? Thanks
Here’s some troubleshooting advice in order of perceived likelihood of success: Try disabling any caching plugin, see if that helps. If it does, try using real cron rather than the default WP-Cron “on page load” method. See the FAQ on the ABBPS plugin page. Any theme or plugin that changes anything about bbPress, WP-Cron or WP email sending might be a good place to look. If you want to be sure, test by switching to the default theme and deactivating all plugins except for ABBPS and bbPress. If the issue appears to be fixed, re-enable them one by one. Caching should be the last to enable again. There are no database tables to check. You could monitor the number of WP-Cron tasks created upon posting, see if maybe there are two for some reason. Other than that, if you have some coding knowledge (or maybe there’s a plugin too), you could monitor the number of actions hooked to the action hooks bbp_new_topic and bbp_new_reply (or one of them depending on where you get your duplicates). After bbPress is loaded up (more precisely on action bbp_after_setup_actions ), ABBPS removes the original bbp_notify_forum_subscribers and bbp_notify_topic_subscribers functions from their respective hooks and replaces them with its own version (name starting with “abbps_” instead of “bbp_”). You can see the code for this in file asynchronous_bbpress-subscriptions.php , lines 248ff. Now, a duplicate email being sent would occur if there are more than one function hooked to each of these actions. Happy debugging! 🙂
Do you have any other plugins that might change the sending behavior of those emails?
Hi Markus, We can’t find any. Is there any specific plugin that can interfere? We installed “Email Log” and that confirms that there are emails send out multiple times. What can we check? DB tables? WP-Cron? Thanks
Here’s some troubleshooting advice in order of perceived likelihood of success: Try disabling any caching plugin, see if that helps. If it does, try using real cron rather than the default WP-Cron “on page load” method. See the FAQ on the ABBPS plugin page. Any theme or plugin that changes anything about bbPress, WP-Cron or WP email sending might be a good place to look. If you want to be sure, test by switching to the default theme and deactivating all plugins except for ABBPS and bbPress. If the issue appears to be fixed, re-enable them one by one. Caching should be the last to enable again. There are no database tables to check. You could monitor the number of WP-Cron tasks created upon posting, see if maybe there are two for some reason. Other than that, if you have some coding knowledge (or maybe there’s a plugin too), you could monitor the number of actions hooked to the action hooks bbp_new_topic and bbp_new_reply (or one of them depending on where you get your duplicates). After bbPress is loaded up (more precisely on action bbp_after_setup_actions ), ABBPS removes the original bbp_notify_forum_subscribers and bbp_notify_topic_subscribers functions from their respective hooks and replaces them with its own version (name starting with “abbps_” instead of “bbp_”). You can see the code for this in file asynchronous_bbpress-subscriptions.php , lines 248ff. Now, a duplicate email being sent would occur if there are more than one function hooked to each of these actions. Happy debugging! 🙂