WPIntell

Source evidence

Notification sent twice

AsynCRONous bbPress Subscriptions · support · 2020-05-26T14:16:00+00:00

complaintsentiment
mediumseverity
0.93relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 31 rows with source links

9.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
supportowpok unresolved
On 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! 🙂

Comments

3 shown
Markus Echterhoff 2020-05-26T18:01:00+00:00

Do you have any other plugins that might change the sending behavior of those emails?

supportowpok 2020-05-27T04:39:00+00:00

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

Markus Echterhoff 2020-05-27T05:40:00+00:00

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! 🙂