Title: PHP Fatal error
Last modified: August 31, 2016

---

# PHP Fatal error

 *  Resolved [Than_sad](https://wordpress.org/support/users/than_sad/)
 * (@than_sad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/)
 * Hi, when I activate your plugin, I receive a lot of this errors in my error log
   from apache server:
 *  PHP Fatal error: Call to undefined function bp_has_message_threads() in /xxx/
   xxx/xxx/xxx/Sites/www.castingenbarcelona.es/wp-content/plugins/buddypress-desktop-
   notification/desktop-notification.php on line 97, referer: [http://www.castingenbarcelona.es/comedia-en-microteatre-barcelona/](http://www.castingenbarcelona.es/comedia-en-microteatre-barcelona/)
 * Please can you help me to solve it.
 * Thanks in advance and best regards.
    Than.
 * [https://wordpress.org/plugins/buddypress-desktop-notification/](https://wordpress.org/plugins/buddypress-desktop-notification/)

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

 *  Plugin Author [websupporter](https://wordpress.org/support/users/websupporter/)
 * (@websupporter)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071057)
 * Hi Than,
    do you have the latest BuddyPress Plugin ([https://wordpress.org/plugins/buddypress/](https://wordpress.org/plugins/buddypress/))
   installed and active? This is necessary for my plugin to run.
 *  Thread Starter [Than_sad](https://wordpress.org/support/users/than_sad/)
 * (@than_sad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071086)
 * Yes of course I have the last versions in all the software and plugins.
 *  Plugin Author [websupporter](https://wordpress.org/support/users/websupporter/)
 * (@websupporter)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071175)
 * Hmmm… Thats very strange. I can reproduce this error only by deactivating BuddyPress.
 * `bp_has_message_threads()` is a function which is located in the BuddyPress plugin.
   Sorry, I need to think a bit more, how this problem can occur otherwise.
 *  Thread Starter [Than_sad](https://wordpress.org/support/users/than_sad/)
 * (@than_sad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071183)
 * Hi, I tuck screen capture with my plugins list. Maybe can help you.
 * [http://www.than-sad.es/Files/Plugins.jpg](http://www.than-sad.es/Files/Plugins.jpg)
 * Best regards.
 *  Thread Starter [Than_sad](https://wordpress.org/support/users/than_sad/)
 * (@than_sad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071311)
 * I’m searching on Internet and I think can be related to the private messaging
   service from buddy press. I have it disabled.
 * Best regards.
 *  Thread Starter [Than_sad](https://wordpress.org/support/users/than_sad/)
 * (@than_sad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071315)
 * Solution?:
 * ** if(function_exists(“bp_has_message_threads”)){**
    if ( bp_has_message_threads(
   apply_filters( ‘dn_has_message_threads’, $args ) ) ){ while ( bp_message_threads()){
   bp_message_thread(); $entry = array(); $entry[‘type’] = ‘message’; $entry[‘content’]
   = bp_get_message_thread_subject(); $avatar = bp_get_message_thread_avatar(); 
   preg_match(‘/src=”(.*?)”/i’, $avatar, $matches); $entry[‘avatar’] = $matches[
   1]; $entry[‘id’] = bp_get_message_thread_id(); $user = bp_get_message_thread_from();
   preg_match( ‘/title=”(.*?)”/i’, $user, $matches ); $entry[‘title’] = sprintf(
   __( ‘%s send you a message’, ‘dn’ ), $matches[1] ); $entry[‘link’] = bp_get_message_thread_view_link();
   $entries[] = $entry; } } **}**
 *  Plugin Author [websupporter](https://wordpress.org/support/users/websupporter/)
 * (@websupporter)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071346)
 * Hi Than_sad,
    thanks for this notice. I was not aware of such a problem. Yes,
   your code should fix the problem.
 * Please try also the current development version, if it works for you and let 
   me know: [https://downloads.wordpress.org/plugin/buddypress-desktop-notification.zip](https://downloads.wordpress.org/plugin/buddypress-desktop-notification.zip)
 * Thanks again!
 * David.
 *  Thread Starter [Than_sad](https://wordpress.org/support/users/than_sad/)
 * (@than_sad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071365)
 * Hi! Installed and no more Apache errors.
 * Thanks!

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

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-desktop-notification_a8cdc6.
   svg)
 * [BuddyPress Desktop Notification](https://wordpress.org/plugins/buddypress-desktop-notification/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-desktop-notification/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-desktop-notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-desktop-notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-desktop-notification/reviews/)

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 8 replies
 * 2 participants
 * Last reply from: [Than_sad](https://wordpress.org/support/users/than_sad/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-72/#post-7071365)
 * Status: resolved