I cannot duplicate your issue using BP 2.7.4
Are you sure that the mentioned member has this option selected:
A member mentions you in an update using "@someuser"
.../settings/notifications/ screen ?
Yep, that option is selected. I think an error occures somewhere along, but its hard to debug this flow. Any ideas are welcome…
UPDATE: well, I found the problem. It seems to be a bug(?) in bp_get_email. That function should get the email-template from the main/root blog. When another blog is active, it switches to the rootblog for the template-query. That switch (switch_to_blog) doesnt seem to work.. So it only works on the rootblog, not on the other blogs (multisite).
Next I checked the difference between the queries on the rootblog and the other blogs. The difference is in the Post_type statement:
– On rootblog: wp_posts.post_type IN (‘bp-email’)
– On other blogs: wp_posts.post_type IN (‘post’)
The bp_get_email_post_type and bp_get_email_tax_type do return the right values when switched to the rootblog, but maybe there’s some filter on WP_Query where the posttypes are verified or something?
Yes, there was a filter on pre_get_posts, from another plugin:/
This can be closed!
6 years, 4 months ago
We recently updated BuddyPress 2.3.4 to 2.7.4 but we seem to have a problem with the mentions. Users used to get an notification-email when they were mentioned in the comments on one of our sites. That doesnt happen anymore. But the emails from private messages or replies on activity-updates do work, so it seems not a problem with the webserver or something like that.
I have searched a lot of files/source and it looks like the function bp_activity_sent_mention_email is responsible for these mails, but I cant find this function anywhere.. Does somebody know where I should look to find the problem? Where can i hook into the mention-emails to see whats wrong?
PS: I also added this code, but that didnt help