[buddypress-trac] [BuddyPress Trac] #8676: Database Errors for multiple notifications
buddypress-trac
noreply at wordpress.org
Tue Apr 5 20:26:05 UTC 2022
#8676: Database Errors for multiple notifications
-------------------------------------+---------------------
Reporter: mike80222 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Toolbar & Notifications | Version: 10.0.0
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------------------+---------------------
Changes (by oztaser):
* version: => 10.0.0
* component: (not sure) => Toolbar & Notifications
* milestone: Awaiting Review =>
Comment:
Hi there,
Welcome to BuddyPress Trac! Thanks for the report.
I think the reason of this error is fetching `new_message` notifications
from other threads instead of displayed one.
Here is my debug data to see how we find empty `$message_ids` array:
{{{#!php
<?php
$unread_message_ids_from_notifications = array( 4, 5, 6 );
$message_ids_from_thread = array( 1, 2, 3 );
$message_ids = array_intersect( $unread_message_ids_from_notifications,
$message_ids_from_thread );
print_r( $message_ids );
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8676#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list