Skip to:
Content
Pages
Categories
Search
Top
Bottom

“Send To” Error in “Compose Message”


  • dinhluong
    Participant

    @dinhluong

    When I try to use the “Compose Message” page, I get an error in the drop-down box of the “Send To” field that reads:

    Fatal error: Call to undefined function friends_search_friends() in (my URL)/wp-content/plugins/buddypress/bp-messages/bp-messages-ajax.php on line 33

    I think this is due to the fact that I’m running a private install of BuddyPress where everyone knows everyone else already so I turned off friends. Is there a way to either fix this or at least remove the error? Messages are still sent properly when I type in the full username manually, but the error message is scary/distracting to my non-technical users, and when they click on it, it replaces whatever was already in the text field with “

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

  • 3237780
    Inactive

    I have the same thing :‘(

    To hide the error message, you can comment, in “bp-messages-ajax.php”, the core of “messages_ajax_autocomplete_results” like this :

    function messages_ajax_autocomplete_results() {

    /*global $bp;

    // Get the friend ids based on the search terms

    $friends = apply_filters( ‘bp_friends_autocomplete_list’, friends_search_friends( $_GET[‘q’], $bp->loggedin_user->id, $_GET[‘limit’], 1 ), $_GET[‘q’], $_GET[‘limit’] );

    if ( $friends[‘friends’] ) {

    foreach ( $friends[‘friends’] as $user_id ) {

    $ud = get_userdata($user_id);

    $username = $ud->user_login;

    echo bp_core_get_avatar( $user_id, 1, 15, 15 ) . ‘ ‘ . bp_core_get_user_displayname( $user_id ) . ‘ (‘ . $username . ‘)

    ‘;

    }

    }*/

    }

    If anyone know how show users list I am interested…

    I tried with “friends_search_users” but I got the same error message “Call undefined function”.

    Sorry for my poor english :p

    Good spot. Please file this as a ticket on https://trac.buddypress.org/ – use the same username and password that you do here. Thanks.

    Just fixed this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Send To” Error in “Compose Message”’ is closed to new replies.
Skip to toolbar