Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notification still not being displayed

Viewing 11 replies - 1 through 11 (of 11 total)
  • Avatar of colabsadmin
    colabsadmin
    Participant

    @colabsadmin

    Hey Michael,

    That usually happens when someone deletes the item you’re being notified about. There’s a ticket open to have the notification deleted when the item is deleted but it hasn’t been implemented yet.

    https://buddypress.trac.wordpress.org/ticket/5308

    Avatar of jakewho
    jakewho
    Participant

    @jakewho

    Unfortunately, I think my issue is more problematic than that…I currently have 43 “blank” notifications and the number keeps growing. I have been receiving these blank notifications ever since I upgraded to Buddypress 1.9.1. I even tried reverting to Buddypress 1.8.1, but this did not resolve the problem.

    Avatar of jakewho
    jakewho
    Participant

    @jakewho

    one other thing I forgot to mention; I seem to be receiving normal notifications for friend requests and confirmation of friend acceptance. I believe the majority (if not all) of the “blank” notifications are notifications for messages sent to me by my friends.

    Avatar of colabsadmin
    colabsadmin
    Participant

    @colabsadmin

    Have you looked in the db to verify they weren’t deletes? Do you have any plugins installed that might effect that? I remember testing a private activity once that sent notifications even though someone didnt have access to them.

    You can prove your theory about the majority being messages by looking in the notification table. In there there are fields that will tell you what component the notification is for (messages, mentions, friend requests, and so on). Hover you mouse over the read/delete actions for the notifications with missing titles. You’ll see the notification ID. Look for those specific IDs to see if there is a common component where this is happening. Either way, you can get the item_id (what you were actually notified on) and verify that item actually exists. If the component is ‘activity’ look for item_id in the activity table. If its from the messages component, then you can look for the item_id in the messages_messages table. (though even if the sender deletes the message, it will still be in the db, so this might not get you anywhere actually)

    I’m curious to know what you find. Good luck.

    Avatar of jakewho
    jakewho
    Participant

    @jakewho

    I have taken a look at the data in the notifications table and it looks like all of the “blank” notifications (at least the first 5 or 6 of them) are of the type “bbp_new_reply”

    here are a couple of rows from the database:

    201438 2 15959 2483 forums bbp_new_reply 3/11/14 16:11 1
    201443 2 1064 2101 forums bbp_new_reply 3/11/14 17:33 1
    201464 2 15959 2347 forums bbp_new_reply 3/12/14 13:07 1
    201468 2 15959 2494 forums bbp_new_reply 3/12/14 16:43 1

    Any thoughts about what might be causing this or how to correct the issue?

    Thanks much,

    Avatar of colabsadmin
    colabsadmin
    Participant

    @colabsadmin

    Looks like 3 of them are from the same topic (15959). Go into the db and do a search on the activity table for secondary_item_id = 15959. That will give you a link to the topic. Go to it and 1: see if it exists still (probably does) and 2: see if there is something weird about it.

    OH. Is bbpress up to date? Maybe there is a bbpress plugin causing issues?

    I just tested this on my site. I created a topic as one user. I logged in as another and replied to the top. Notification was sent… no problem. I logged in as administrator and deleted the topic completely. The notification title still showed up, so I doubt deletions are your issue.

    Sorry that I’m grabbing at straws. It would help if I was having this problem (glad I’m not) :)

    Avatar of jakewho
    jakewho
    Participant

    @jakewho

    I have done some additional investigation and it looks like the problem may be that when someone replies to a topic in a bbPress forum, they are receiving the following error message:

    Fatal error: Call to undefined function bp_notifications_add_notification() in /nas/wp/www/staging/cbblogers/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.php on line 124

    I tried to revert to buddyPress 1.8.1 and bbPress 2.5.2, but unfortunately this didn’t resolve the issue.

    Any thoughts about what I should try next?

    Thanks much,

    Avatar of colabsadmin
    colabsadmin
    Participant

    @colabsadmin

    bp_notifications_add_notification was introduced in bp 1.9, so you’ll need at least that version.

    Avatar of jakewho
    jakewho
    Participant

    @jakewho

    The fatal error is no longer generated in bbPress 2.5.1, so it looks like something new was introduced in bbPress 2.5.2.

    Currently on my staging site I am running bbPress 2.5.1 and buddyPress 1.9.2, but unfortunately even though errors aren’t being generated anymore with this configuration, not all notifications are being displayed either. It looks like friend request notifications are working correctly, but user-to-user message notifications are not working. In addition, I am still getting “blank” notifications from the forum (even though I’m not seeing any fatal errors).

    Any thoughts about next steps?

    Thanks much

    Avatar of colabsadmin
    colabsadmin
    Participant

    @colabsadmin

    If you can reproduce the blank condition every time when replying to forum topics, then I would focus on that for the time being. (The idea is to find something the fails EVERY TIME so you can troubleshoot it.) Start disabling plugins and revert back to a basic theme. If it’s stops happening, start re-enabling plugins one by one. That’s what I would do anyway.

    Avatar of jakewho
    jakewho
    Participant

    @jakewho

    I haven’t had a chance to perform a full troubleshooting yet, but I have notice one other interesting symptom: I currently have 49 “blank” notifications and it looks like so does everyone else on my site…

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.