any updaates?
-
Hi Ray,
I really need this plugin on my site, the logic behind is awesome. I uploaded the plugin but the site crashed when testing. Is there any way you could update the plugin?
Thanks.
https://ww.wp.xz.cn/plugins/buddypress-private-messages-for-followers-only/
-
Hi @oacavus,
This is an upstream BuddyPress bug.
Please try the fix for BuddyPress listed in this ticket:
https://buddypress.trac.ww.wp.xz.cn/attachment/ticket/6894/6894.01.patchYou only need to change what is listed in
bp-messages-functions.php.Hi again and thanks for the reply.
I updated the code as you advised and removed the
if ( ! $message->send() ) {string.// Bail if message failed to send. $send = $message->send(); + if ( false === is_int( $send ) ) { + if ( 'wp_error' === $r['error_type'] ) { + if ( is_wp_error( $send ) ) { + return $send; + } else { + return new WP_Error( 'message_generic_error', __( 'Message was not sent. Please try again.', 'buddypress' ) ); + } + } + return false; }But as soon as I changed the code (before activating the plugin) the site crashed and gave this error below:
Parse error: syntax error, unexpected 'if' (T_IF) in /home/..../public_html/wp-content/plugins/buddypress/bp-messages/bp-messages-functions.php on line 178I am sure I am missing something here but could not figure it out.
Could you tell me what I am doing wrong here?Thanks
You have to remove the
+character from each line that you added.Oh.. That should have been obvious to me.
Now the plugin works like a charm! Thank you!
Thanks for confirming that the BuddyPress fix works.
An update:
The change in the codes you suggested creates this error when using the message function in buddypress:
Fatal error: Call to a member function get_error_message() on a non-object in /home/platonyx/public_html/wp-content/plugins/buddypress/bp-messages/bp-messages-actions.php on line 104
I changed the bp-messages/bp-messages-functions.php file with the older one and the problem seemed to be solved.
Any ideas?
Thanks.
How are you using the message function?
Please pass the full parameters so I can debug. Thanks.
Hi Ray,
I am not sure if I understood the question. The message function I am referring to is the buddypress intergrated message function,i.e the users receive or send message to each other in an buddypress structred web site. I dont know what else I can give you as detail. If there is anything more you’d like to know, please let me know so I can give you more details.
Thanks.
Can you make sure you altered the lines correctly in
bp-message-functions.php?
https://buddypress.trac.ww.wp.xz.cn/changeset/10586/branches/2.4/src/bp-messages/bp-messages-functions.phpIf you are not sure that you added the lines correctly, you can download the
bp-messages-functions.phpfile here:
https://buddypress.trac.ww.wp.xz.cn/browser/branches/2.4/src/bp-messages/bp-messages-functions.php?format=txtI haven’t encountered any fatal errors after the fix. Are you using any other private message plugins or code snippets that might be causing a conflict?
BuddyPress 2.5.0 was just released today, which includes the fix listed above.
Maybe try BP v2.5.0 and see if that fixes your problem? If not, please let me know so I can debug.
How exclude users by user role!? Thank you!
The topic ‘any updaates?’ is closed to new replies.