How to: Fix WordPress Warning: Cannot modify header information
August 21st, 2011

If you try to load your WordPress blog and you come across this warning (or anything similar), the fix is really easy. The error message should look 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
Notice that the error could warn about any file, not only the wp-config and the wp-login. The solution is to edit any file that is noticed in the error message (download via ftp and edit it locally, then upload it to your wordpress directory and replace the old one, or edit it directly in your server) and remove all spaces before the <?php and after the ?>.





