WordPress 2.7 ‘Cannot Modify Header Information’ Fix

By Randy Jensen | Feb 26, 2009

Header Error In WordPress 2.7I just recently upgraded a bunch of WordPress 2.5.1 blogs to 2.7 at work. Everything seemed to have gone perfectly until I got a call from someone who was trying to edit a draft she was working on. Everytime she clicked the ‘edit’ button, WordPress went to the post preview page and threw a couple of errors:

At the top of the page it said: ‘Post Preview (updated when post is saved)’

Then, towards the bottom, there were two more seemingly related errors:

"Warning: Cannot modify header information – headers already sent by (output started at /var/www/rchsupdates/wp-content/plugins/preview-frame.php:43) in /var/www/rchsupdates/wp-includes/functions.php on line 698"
"Warning: Cannot modify header information – headers already sent by (output started at /var/www/rchsupdates/wp-content/plugins/preview-frame.php:43) in /var/www/rchsupdates/wp-includes/functions.php on line 699"

After searching all over including several posts on the WordPress forums, the only thing I could come up with was that there was white space before or after the tags in the wp-config file. I checked, double checked and checked again but no matter how many times I hit ‘delete’, there was no white space to be found.

I decided to go and deactivate all my plugins…like magic, everything was working perfectly again. The culprit in my case was the ‘Preview Frame’ plugin that was for adding the ‘Preview’ button back after WP took it out with an update.

I did some more searching now that I knew what the problem was and I found several other people who had this issue, but with different plugins.

Just goes to show, if you’re ever having problems with WordPress, deactivating your plugins should be one of your first steps in troubleshooting.


  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Design Float
  • DZone
  • Ping.fm
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis
  • Yahoo! Buzz
Copy the code below to your web site.
x 

Related posts:

  1. WordPress 2.7.1 Released WordPress 2.7.1 was released today. It’s the typical bug...
  2. Recover a Lost WordPress Password Recently I had a client contact me and tell...

Related posts brought to you by Yet Another Related Posts Plugin.

  • Thanks so much! I was looking for ages for a fix to this problem.

    :)
  • Great info. Thanks for sharing this info.
blog comments powered by Disqus
© 2009 Randy Jensen Online, - PassionDuo WordPress Theme