Title: Cannot modify header information &#8211; headers already sent
Last modified: August 18, 2016

---

# Cannot modify header information – headers already sent

 *  [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/)
 * when I try to unaprove comments I get this warning:
 * `Warning: Cannot modify header information - headers already sent by (output 
   started at /public_html/wp-admin/admin-header.php:8) in /public_html/wp-admin/
   post.php on line 569`
 * anyone know what to do?

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/page/2/?output_format=md)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-161986)
 * [http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent](http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent)
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-161987)
 * thanks a lot. cheers!
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-161994)
 * so far…that didn’t work. I checked the files that it wanted, and edited them…
   still getting that same error.
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-161997)
 * I took out this line on post.php in the admin folder
 *  require_once(‘./admin-header.php’);
 * that was line 548, under the unaproove section. the aproove section did not have
   that line, so I took it out under the unaproove section and it’s working fine…
   anyone know what that line does, or if there will be a problem without it?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-161999)
 * Umm… put that line back. You’ll need to call admin-header.php for the proper 
   operation of your admin interface. As quoted in the error, the problem is in 
   admin-header.php on line 8.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162002)
 * Hmmm… I don’t think it’s a smart idea to take out lines (especially when they
   say “require”) from the core files.
    Stick to the finding the white spaces! What
   text editor are you using?
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162004)
 * `
    case 'unapprovecomment':
 *  require_once('./admin-header.php');
 *  check_admin_referer();
 * was the line…and after I removed it then it was fine…so, I should look in the
   file on line 8 then, ok.
 * I put that line back…and I can not find any problems with admin-header.php and
   on line 8 is some html…
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162005)
 * <title><?php bloginfo(‘name’) ?> › <?php echo $title; ?> — WordPress</title>
 * that is the line…
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162006)
 * notepad is what I am using
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162013)
 * all of my files for whatever reason don’t have line breaks…instead they have 
   an unknown BLOCK char…that I have to go through and replace all of them with 
   a crlf…not sure why that either…
 *  [lbessant](https://wordpress.org/support/users/lbessant/)
 * (@lbessant)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162018)
 * Try TextPad or any other editor that understands about Unix-style line breaks.
   If you search here, you’ll find plenty of suggestions for good text editors, 
   many of them free. Notepad is really not up to the job….
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162020)
 * Download WordPress again, delete the admin-header.php file off of your server
   and upload a new copy from the fresh download.
 * For a good text editor, see this list:
 * [http://codex.wordpress.org/Glossary#Text_editor](http://codex.wordpress.org/Glossary#Text_editor)
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162034)
 * I tried reinstalling the whole thing…and it is still saying the same error. I
   have looked and corrected tons of whitespace in files and things are still being
   borked up…any other thoughts?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162035)
 * What FTP app are you using?
 *  Thread Starter [tmtracy](https://wordpress.org/support/users/tmtracy/)
 * (@tmtracy)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/#post-162037)
 * filezilla

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/page/2/?output_format=md)

The topic ‘Cannot modify header information – headers already sent’ is closed to
new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 22 replies
 * 6 participants
 * Last reply from: [jjriv](https://wordpress.org/support/users/jjriv/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent/page/2/#post-162713)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
