- You are here:
- Main › Forum › Application Support › cBB Reactions
Notifications not appearing
Due to a lack of free time, both support on this forum and extension development are currently limited.
All bugs are noted and saved for fixes, even if there are no replies to the posts.
Normal activity will resume as soon as possible.
All bugs are noted and saved for fixes, even if there are no replies to the posts.
Normal activity will resume as soon as possible.
3 posts
• Page 1 of 1
-

- deiux3
- Posts: 10
- Joined: Fri Oct 25, 2024 9:03 am
Sun Aug 10, 2025 10:26 am • via Web
Hello.
I have reaction extension 1.0.4 and I have a problem with notifications..
1) Sometimes, the notification is not sent when a user reacts, sometimes it is sent correctly!
2) If I have a post where 15 people reacted, sometimes the notification will show only 10 people reacted..
I think there's a problem from add_notification but I'm not 100% sure.
The strange thing is, if I delete all reactions (as an admin) from a post where notifications are not sent when reacting, and react again - the notification is sent correctly!
What can be the cause and how can I fix it? Thank you!
I have reaction extension 1.0.4 and I have a problem with notifications..
1) Sometimes, the notification is not sent when a user reacts, sometimes it is sent correctly!
2) If I have a post where 15 people reacted, sometimes the notification will show only 10 people reacted..
I think there's a problem from add_notification but I'm not 100% sure.
The strange thing is, if I delete all reactions (as an admin) from a post where notifications are not sent when reacting, and react again - the notification is sent correctly!
What can be the cause and how can I fix it? Thank you!
-

- IvanPF
- Administrator
- Posts: 2252
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Sun Aug 10, 2025 9:04 pm • via Web
Hi,
I have to try to reproduce that same mistake and do tests to find out the cause.
I currently do not have much free time, I will do it as soon as possible
I have to try to reproduce that same mistake and do tests to find out the cause.
I currently do not have much free time, I will do it as soon as possible
-

- deiux3
- Posts: 10
- Joined: Fri Oct 25, 2024 9:03 am
Mon Aug 11, 2025 10:38 am • via Web
IvanPF wrote:Hi,
I have to try to reproduce that same mistake and do tests to find out the cause.
I currently do not have much free time, I will do it as soon as possible
So basically, I think there's a problem with how the user id feature is implemented.
Because I changed the add_notification with this one:
- Code: Select all
public function add_notification($notification_type_name, $notification_data)
{
$notification_type_id = $this->manager->get_notification_type_id($notification_type_name);
$item_parent_id = isset($notification_data['item_parent_id']) ? $notification_data['item_parent_id'] : 0;
/** @var \canidev\reactions\notification\post */
$notification = $this->manager->get_item_type_class($notification_type_name);
$sql = 'SELECT *
FROM ' . $this->notifications_table . '
WHERE notification_type_id = ' . (int)$notification_type_id . '
AND item_id = ' . (int)$notification_data['item_id'] . '
AND item_parent_id = ' . $item_parent_id;
$result = $this->db->sql_query($sql);
$notification_row = $this->db->sql_fetchrow($result);
$this->db->sql_freeresult($result);
if (!$notification_row || !$notification->allow_multiple_users())
{
return $this->manager->add_notifications($notification_type_name, $notification_data);
}
$notification_data = array_merge($notification_row, $notification_data);
return $this->manager->update_notifications($notification_type_name, $notification_data, [
'item_id' => $notification_data['item_id'],
'item_parent_id' => $item_parent_id,
]);
}
And now every react sends a notification, but the "User1, user2, USer3 and x others reacted to your post" feature it's gone with this method.
But with this method every react -> sends a notification to the author with the latest person that reacted.
With the original add_notification method, there's a 40% chance that the notification is not sent.
I even tried with a new user to react to an old post that has not beed reacted to in more than 30 days, and the author did not recieve any notification for that post..
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
- External Links
- phpBB Official
- phpBB Official (Spanish)
- Raul Arroyo Monzo
- PasionReef
- About CaniDev
- Terms of use
- Privacy Policy
- About Us
- Contact
- © 2011-2025 CaniDev