Are you getting this error in your Wordpress blog? This is something I’ve seen quite a bit. All of a sudden your blog disappears and you’ve got this error.
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…….
There may be a few reasons why this is happening, but this fix will solve what I feel is the most common one. You’ll need to connect to your blog via FTP. Look for a file called wp-config.php and download it. This file is created when you install Wordpress, and it won’t be available in your local files, so you must download it to fix the error.
Now open the file and check out the top of the file starting with <?php. If there are any spaces before it, delete them. Then scroll down to the bottom of the file and check for any spaces below the php?> and remove them if there are any.
In most cases, this should solve the problem and it’s the easiest fix, so best to at least rule it out first. If this doesn’t work, you may want to try removing your plugins, because it may be a plugin that is causing the error. You can do this by connecting to your site via FTP and downloading the /plugins/ folder. Once you’ve done that, delete all the plugins from the /plugins/ directory on the remote server. Check and see if the error is gone. If it is, reupload the plugins from your local /plugins/ directory one by one checking each time to make sure the error hasn’t returned.
You can also try upgrading your version of Wordpress if none of the above is working.
























I wish it was this easy, it’s one of my plugins that i need to work keeps causinf the probelms.. It’s terrifyingly difficult to fix.. looks like I’ll just have to battle on.
In the instance a plugin could be causing the problem, all you need to do is download all the plugins you’re using off your server, then delete them off the server. Then you can upload them and activate one by one until you find the one causing the error.
Thank you so much, I had error messages all over my page, and it was from one of my new plugins. I have never mucked around in PHP land, and with your simple instructions, I knew what to do. Thank you so much, I’ll start uploading my plugins with caution.
Very nice and simple fix and it worked for me. It is one of those problems so easily overlooked. Deleting the blank line before the did the trick. I used this in a stand-alone download application using PHP and Octets with IE7 from a Linux server. Thanks for the help, John http://rmtrain.com.