Hi Than,
do you have the latest BuddyPress Plugin (https://ww.wp.xz.cn/plugins/buddypress/) installed and active? This is necessary for my plugin to run.
Yes of course I have the last versions in all the software and plugins.
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.
Hi, I tuck screen capture with my plugins list. Maybe can help you.
http://www.than-sad.es/Files/Plugins.jpg
Best regards.
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.
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;
}
}
}
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.wp.xz.cn/plugin/buddypress-desktop-notification.zip
Thanks again!
David.
Hi! Installed and no more Apache errors.
Thanks!