What is the complete error warning? You might be looking at ajax.php when the problem is the phrase before that and the victim is ajax.php. See https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
thank you mercime for replying. its the ajax.php that is the problem. this is the error that i get
‘Warning: Cannot modify header information – headers already sent by (output started at /…./public_html/chill/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:553) in /…./public_html/chill/wp-content/plugins/buddypress/bp-messages.php on line 556’. i have already checked the above link.
line 553 in ajax.php is this below line code:
‘echo bp_core_fetch_avatar(array(‘item_id’ =>$user_id,’type’=>’thumb’,’width’=>15,’height’ =>15)).’ ’.bp_core_get_user_displayname($user_id).’(‘.$username.’)’;
} ‘
regards
amit
can anyone help me with this issue.
Download a new ajax.php file corresponding to your BP version from the trac.
https://trac.buddypress.org/browser?order=name#tags
You probably have some whitespace somewhere.
Hi i am having the same issue with replying to peoples post in activity…
Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:142) in /home/xxxx/public_html/wp-includes/pluggable.php on line 693
Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:142) in /home/xxxx/public_html/wp-includes/pluggable.php on line 694
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxx/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:142) in /home/xxxx/public_html/wp-includes/pluggable.php on line 695
I have also downloaded the new file and checked for any whitespace and was unable to find any.