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.


Other Posts

  • This field is for validation purposes and should be left unchanged.