When a member is viewing notifications in their own profile and clicks on a link to a BBPress notification eg. “You have one new reply to X Topic from Y”, that notification should automatically be marked as “read” but it’s not happening 🙁
Same issue under “Notifications” in the menu bar, but if I could fix one, hopefully I can fix the other too!
All other ie. Buddypress notifications work fine and as expected.
The links generated are something along the lines of… mysite/forums/topic/my-new-topic/?action=bbp_mark_read&topic_id=2036&_wpnonce=8b95c61fcc#post-2044
I’ve tried changing themes and the issue remains the same.
Does anyone have any suggestions as to what I may be missing?
With many, many thanks in advance…
Just to add to this, in case anyone with a similar problem comes across it, this seems to be an issue only with more recent versions of bbPress as downgrading from 2.6.4 to 2.5.14 (an old version that I happened to have installed elsewhere) seems to resolve the issue.
I’m pretty sure it’s arising from the file located in bbpress/includes/extend/buddypress/notifications.php where there is a function called function bbp_format_buddypress_notifications() which creates a link (which when clicked, automatically marks that particular notification as “read”).
From the quick test I’ve just run, it would appear that the link/string created in more recent versions of bbPress may not be correct but I’ll need to do some more investigation to work out how/why.
Thank you so much Brajesh and that’s interesting. I might have a look at that version myself but you’re far more experienced in these things than I am (!) so I’m sure you’ll spot the issue more quickly (though I’m 99% sure it’s just the code that’s used to generate the link which isn’t quite working as it should).
I’ll look forward to any further thoughts you may have.
I am having this very issue. When following notification links for BuddyPress activity, it auto-clears but when following notification links for BBpress activity, it remains until I clear it manually.
I can’t really downgrade my BBPress installation so I’m hoping someone finds another fix for this.
Clearing of individual notifications are handled by the plugin generating them. We simply list them.
In this case, It is bbPress which handles clearing the notification not us. It seems they are not handling it.
Please report it on bbPress trac.
You may find it helpful to check out this thread… https://bbpress.org/forums/topic/bbpress-notifications-not-clearing-up/#post-209895, particularly the post almost at the end which states:
“It looks like this is a known bug, and a patch might be implemented in the future (see “Attachments”):
Editing bbpress/includes/extend/buddypress/notifications.php as shown there has fixed the issue for me.”
I also used the same patch and it fixed the issue for me too, though heaven knows why it’s taking BBPress so long to address themselves 😉
You must be logged in to reply to this topic.