Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error – BP_MESSAGES_AUTOCOMPLETE_ALL

  • @sweeny

    Participant

    Hi!

    I am using the theme woffice with Buddypress.

    I would like to use an AJAX search for finding a message recipient.
    I changed the source code: I added define( ‘BP_MESSAGES_AUTOCOMPLETE_ALL’, true );

    Now the search works fine, but sending the message doesn’t work. It appears:
    Message could not be sent because you have entered an invalid username. Please try again.

    What can I do?

    Kind regards
    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • @henrywright

    Moderator

    I changed the source code

    It’s never a good idea to change the plugin’s source. You should revert that change. Any custom code snippets you might have should go into either your theme’s functions.php file or a bp-custom.php file (if you have one).

    @sweeny

    Participant

    Hi!

    Thanks for your answer. Yesterday I tested it without any source code modification.

    Names of friends should be completed automatically (auto-complete). But it doesn’t work: I started typing a name. Buddypress searched name and founded the name. I chose the founded name. But the error was the same: “Message could not be sent because you have entered an invalid username. Please try again.”

    I tried two different buddypress themes – same bug?

    Kind regards

    Alex

    @henrywright

    Moderator

    Could be theme-related or perhaps a plugin is conflicting. Try with TwentyFifteen and all plugins disabled.

    @sweeny

    Participant

    Hi!

    I tested: It seems to be the plugin “buddypress-global-search”!

    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error – BP_MESSAGES_AUTOCOMPLETE_ALL’ is closed to new replies.
Skip to toolbar