Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter oacavus

    (@oacavus)

    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.

    Thread Starter oacavus

    (@oacavus)

    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.

    Thread Starter oacavus

    (@oacavus)

    Oh.. That should have been obvious to me.

    Now the plugin works like a charm! Thank you!

    Thread Starter oacavus

    (@oacavus)

    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 178

    I am sure I am missing something here but could not figure it out.
    Could you tell me what I am doing wrong here?

    Thanks

    Hi Andrea,

    Having the same problem here, although I added the code you provided a couple weeks ago, all of a sudden the birhdate search field started to give the above mentioned error.

    Any ideas?

    Hi there,

    Is there any way for the compliments NOT to show on the activity stream, I mean, if it was up to the admin to determine whether to show the compliments on the activity stream or not, that would be great. Because not all of my users want their compliments to ben seen by the rest of the site.

    Thanks.

    Thread Starter oacavus

    (@oacavus)

    Hi Daniel,

    Big thanks for answering so fast.

    I was almost sure that the problem started with the upgrade but just to make sure I downgraded as you advised and the results are fine, meaning every user has its own letter with version 1.0.1.

    I am using lots of plugins other than buddypress but as the 1.0.1 version of your plug-in works fine, I think it is safe to assume that it is something with the upgrade. But I may be wrong, I am not an expert or anything.

    If you give me your personal e mail address I can give you the details of my site.

    Thanks again,

    ?.

    oacavus

    (@oacavus)

    I am having the same problem here. Did you find anything to fix that issue?

    Thread Starter oacavus

    (@oacavus)

    Ok I changed the php file and it worked.

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