February 27th in Wordpress by pbu .
[Fix] Warning: Cannot modify header information – headers already sent by wp-config.php
i recently made a small change to wp-config.php after download using FTP software and when i was deleting my spam comments this error suddenly was thrown out in my blog..
Warning: Cannot modify header information – headers already sent by (output started at ***/wp-config.php:29) in /home/***/wp-includes/pluggable.php on line 213
I did figure out what the problem was. Here is the FIX:
Open wp-config.php and see if there is any blank lines and white spaces both on top and bottom of file within php quotes. If so delete them
NOTE: Being PHP programmer myself, i know that “Headers already sent” most commonly caused by white spaces or new lines in php scripts.
Similar Posts:
- How to import text data in mysql with spaces?
- How to manually upgrade wordpress from older versions
- How to run FTP server on different port!
- How to use LOAD DATA INFILE to import fixed width data in MySQL
- Automatic Face Detection in Photos with PHP
- Website shows up Blank Page and will not load!
- Setup Postfix/Dovecot MailServer for Centos/RHEL
- easyapache -Premature end of script headers error in cpanel
- Fix -> MySQL LOAD DATA Infile – Access Denied using password YES
- Fix -> WordPress wp-comments-post.php is blank !


March 5, 2009
To fix this, just omit the ‘?>’ tag. For more information: http://gulati.info/2009/01/five-simple-php-tricks/ (it’s #1)
September 6, 2009
This can do with the error
exactly the space can be deleted from the file between the () in the warning
in the case:
Warning: Cannot modify header information – headers already sent by (output started at ***/wp-config.php:29) in /home/***/wp-includes/pluggable.php on line 213
the file conserned is:wp-config.php
and not:
pluggable.php
December 12, 2009
It’s amazing how a blank line in the code of the wp-config.php made my WP-Admin page become non-existant. So just wanted to say thanks b/c that was the problem and the fix was right on point! I was looking at the pluggable.php file, which obviously was the wrong one. Glad I found this site within minutes of me finding my disappearing WP admin area.
February 11, 2010
WP error
September 23, 2010
Thanks for this nice information. It helped me a lot to solve the issue. Removing the spaces from wp-config.php actually did the trick. Thank you again
October 15, 2010
Thanks you, I had the same issue but with index.php. Reading your comment I removed the blank spaces in index.php and it works again.