Title: warning-cannot modify header
Last modified: August 18, 2016

---

# warning-cannot modify header

 *  [creakingnewbie](https://wordpress.org/support/users/creakingnewbie/)
 * (@creakingnewbie)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header/)
 * I tried to clear out a failed WP install (even deleted all tables in the database),
   then re-install. Did it twice, in case I’d messed up first time, but result is
   the same.The Blog appears, but I can’t log in as administrator.
 * I get this message:
 * > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/content/h/o/c/hockings/html/wp-config.php:24) in /home/content/
   > h/o/c/hockings/html/wp-login.php on line 12
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/content/h/o/c/hockings/html/wp-config.php:24) in /home/content/
   > h/o/c/hockings/html/wp-login.php on line 24
   >  New Freebooters
 * I also get the message that my browser is refusing cookies, which is untrue.
 * Any idea where I should look for the source of the problem, or how I should set
   about cleaning out and re-installing so that it doen’t happen once again?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header/#post-663859)
 * 1. You have an empty line or blanks space after the closing `?>` in the wp-config.
   php file. Remove it:
    [http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  Thread Starter [creakingnewbie](https://wordpress.org/support/users/creakingnewbie/)
 * (@creakingnewbie)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header/#post-663867)
 * Thanks! I wouldn’t have found that in a month of Sundays…
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header/#post-663868)
 * It is just about learning how to read the error message 🙂
    _ (output started
   at /home/content/h/o/c/hockings/html/**wp-config.php:24**)
 * Looking at the wp-config file in a “smart” text editor that has line numbering…
   you will see there are only 23 lines in it. So line 24 must be an empty/blank
   line. Voila!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘warning-cannot modify header’ is closed to new replies.

## Tags

 * [cannot log in](https://wordpress.org/support/topic-tag/cannot-log-in/)
 * [cannot modify header](https://wordpress.org/support/topic-tag/cannot-modify-header/)
 * [install problem](https://wordpress.org/support/topic-tag/install-problem/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header/#post-663868)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
