Todays post is all about Cannot modify header information headers already sent by wordpress error.

Here we  know about this error which cannot modify header information headers already sent. If you want to know about all this just read out this article. Most of the people getting an error on every page except my home (blog) page.
Sometimes you will see this error like this Warning: Cannot modify header information – headers already sent by (output started at //home/htdocs/wordpress/wp-config.php:1) in /home/htdocs/wordpress/wp-login.php on line 12


You May Also Like:


It is usually due to spaces, new lines, or other garbage at opening/closing PHP file <?php tag or after a closing ?> tag in wp-config.php. It can be other file too so need to check error message as it may list file name where the error occurred.

headers already sent

How to Resolve this error header already sent

  1. Download yourwp-config.php down via FTP (Edit directly if you have SSH access)
  2. Open wp-config with your favourite editor, and remove all spaces before “<?php” and after “?>
  3. Upload and replace this file with the old one.

headers already sent

About The Author

Related Posts

Leave a Reply

Your email address will not be published.