Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error trying to add new user to a private message

  • Hi, I’ve finding the same error when I try to add new private message recipient. When I type the first letters, i get a list with the matching user names and then I always get the same three errors:

    Warning: Cannot modify header information – headers already sent by (output started at /usr/home/acalsl.com/web/redacal/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:556) in /usr/home/acalsl.com/web/redacal/wp-content/plugins/invite-anyone/by-email/by-email.php on line 393

    Warning: Cannot modify header information – headers already sent by (output started at /usr/home/acalsl.com/web/redacal/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:556) in /usr/home/acalsl.com/web/redacal/wp-content/plugins/buddypress/bp-messages.php on line 556

    Warning: Cannot modify header information – headers already sent by (output started at /usr/home/acalsl.com/web/redacal/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:556) in /usr/home/acalsl.com/web/redacal/wp-content/plugins/buddypress/bp-messages.php on line 557

    I have already tried to add ‘define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true )’ to wp-config.php but it didn’t solve the problem.

    Any tips?

    Thanks in advance.

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

  • carstiee09
    Participant

    @carstiee09

    i have the same problem…


    carstiee09
    Participant

    @carstiee09

    Hello iwazaru,

    you have to past the code in the: bp-messages-cssjs.php

    try this code:

    <?php

    function messages_add_autocomplete_js() {
    global $bp;

    // Include the autocomplete JS for composing a message.
    if ( $bp->current_component == $bp->messages->slug && ‘compose’ == $bp->current_action ) {
    add_action( ‘wp_head’, ‘messages_autocomplete_init_jsblock’ );

    wp_enqueue_script( ‘bp-jquery-autocomplete’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.autocomplete.js’, array( ‘jquery’ ) );
    wp_enqueue_script( ‘bp-jquery-autocomplete-fb’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.autocompletefb.js’ );
    wp_enqueue_script( ‘bp-jquery-bgiframe’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.bgiframe.min.js’ );
    wp_enqueue_script( ‘bp-jquery-dimensions’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.dimensions.js’ );
    }

    }
    add_action( ‘wp’, ‘messages_add_autocomplete_js’, 2 );

    function messages_add_autocomplete_css() {
    global $bp;

    if ( $bp->current_component == $bp->messages->slug && ‘compose’ == $bp->current_action ) {
    wp_enqueue_style( ‘bp-messages-autocomplete’, BP_PLUGIN_URL . ‘/bp-messages/css/autocomplete/jquery.autocompletefb.css’ );
    wp_print_styles();
    }
    }
    add_action( ‘wp_head’, ‘messages_add_autocomplete_css’ );

    function messages_autocomplete_init_jsblock() {
    global $bp;
    ?>

    jQuery(document).ready(function() {
    var acfb =
    jQuery(“ul.first”).autoCompletefb({urlLookup:’root_domain . ‘/wp-load.php’ ?>’});

    jQuery(‘#send_message_form’).submit( function() {
    var users = document.getElementById(‘send-to-usernames’).className;
    document.getElementById(‘send-to-usernames’).value = String(users);
    });
    });

    <?php
    }

    i you have installed buddypress via a subdomain.

    Carsten

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error trying to add new user to a private message’ is closed to new replies.
Skip to toolbar