ok I have to correct my own post – it is not old users and new users but users with a . (period or full stop) in their username. If a user has a period in their username the message system malfuntions.
I just found the same error! I cannot send messages to users with a dash in their username. The error I am getting is when I try to select that user as the recipient, it shows there name but then also the following errors IN the dropdown:
Warning: Cannot modify header information – headers already sent by (output started at /home/tr0421or/public_html/wordpress/wp-content/plugins/genesis-connect/lib/ajax.php:541) in /home/tr0421or/public_html/wordpress/wp-content/plugins/buddypress/bp-messages.php on line 556
Warning: Cannot modify header information – headers already sent by (output started at /home/tr0421or/public_html/wordpress/wp-content/plugins/genesis-connect/lib/ajax.php:541) in /home/tr0421or/public_html/wordpress/wp-content/plugins/buddypress/bp-messages.php on line 557
Warning: Cannot modify header information – headers already sent by (output started at /home/tr0421or/public_html/wordpress/wp-content/plugins/genesis-connect/lib/ajax.php:541) in /home/tr0421or/public_html/wordpress/wp-content/plugins/buddypress/bp-messages.php on line 558
I get the same error for other users but message will go thru.
are you using genesis connect by any chance? I have a post in to them about it…
Try adding `define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true );` to your wp-config.php or bp-custom.php file.
I’m having this same problem but for all users, not just with special characters in their names. Any other suggestions? Thanks.
Yes as Brandon says
The solution is to add
define( ’BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true );
to the top of the define list in the wp-config.php file. Fixed for things like john.smith not sure about other characters.
Thanks Brandon – though I figured it out a wee while ago from a similar problem posted in BuddyPress Trac.
Hello all – I ran into this issue as well, and tried using the code fix in my wp-config.php file but it’s not working. Also I cannot find bp-custom.php anywhere in /plugins/buddypress – was it moved or renamed? Do I still need to add it there?
However, even with the wp-config.php custom setting in place I cannot even auto-fill messages to test users without dots in their names. Oddly it will autofill the admin’s nickname but that’s it..
Update: I read the bp-core.php file and created a file called bp-custom.php and put this in my /plugins folder as instructed with the username_compatibility code as instructed above and it’s still not working for me. That doesn’t seem to have done anything and neither is editing the wp-config.php.
I’ve made 4 test users and autofill doesn’t find anything.