Fix Cannot modify header information – headers already sent In WordPress


This is a common issue in WordPress , and it’s showing Because you have gotten some white space (spaces, newline) before the opening PHP tag or after the closing PHP tag in .php Files.We have many option for Fix this issue:

Solution 1

You can make a php.ini file in the Public_html folder and add the following line in it:

if php.ini file not resolve this issue, You can make .user.ini file in public_html folder and add following line in it:
buffer_output = on;

After that check your site issue resolve or not.

Solution 2

You should check for any empty lines at the end of your .php files.Simply remove the empty line at the end of your script( after the final “?>” or “php>” string). After that check your site issue resolve or not.

Solution 3

Deactivate all Plugins and check issue resolve or not , if issue is resolve , then activate plugin one by one and check frontend , by this step you will find out which plguin generate this Waring, this plugin replace with new copy of plugin Download form

Solution 4

Update WordPress to latest version.

Solution 5

Activate WordPress Default Theme


  1. i think mostly developers make this mistake. when function.php have blankspace below code appearing thiis issues.


Please enter your comment!
Please enter your name here