Wordpress Error – Warning: Cannot modify header information Headers Already Sent

Monday, February 2nd, 2009

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.

Problems with Wordpress 2.7 Flash Image Uploader

Monday, December 22nd, 2008

image-uploader

I must be behind on my Flash updates or something because Wordpress 2.7 seems to have a new Flash installer and I have no idea what it looks like because I get a blank screen whenever I click on the image upload button. Frankly, I really could care less about the Flash image uploader anyway. In fact I prefer the regular browse method. I guess I don’t have anything to compare it with, but still…

Anyway, I think it’s a real pain that it defaults to the Flash uploader every time. I haven’t spent a whole lot of time looking to see if there’s anywhere to change this default, but I would guess if it was going to be anywhere it would be in the settings -> media page, and it’s definitely not there.

If anyone knows anything about this I’m all ears.