Opened 8 years ago
Closed 8 years ago
#7127 closed defect (bug) (no action required)
Fatal error: Call to undefined function bp_get_total_unread_messages_count()
Reported by: | jameshh93 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 2.5.0 |
Component: | (not sure) | Keywords: | |
Cc: |
Description
When using functions like bp_get_total_unread_messages_count() or bp_friend_get_total_requests_count using code which used to work just fine now throws an error.
Code that used to work but now doesnt is:
<?php $count = bp_get_total_unread_messages_count( bp_loggedin_user_id() ); if ( $count > 0 ) { echo '<div class="site-header-user-notifcations-bubble">'; echo $count; echo '</div>'; } else { // The notif count is 0. } ?>
Change History (1)
Note: See
TracTickets for help on using
tickets.
Wait sorry.. seems this is caused when you dont set the buddypress private mssges and friend connections on in settings.