Title: Cannot modify header information
Last modified: August 31, 2016

---

# Cannot modify header information

 *  [sagarm](https://wordpress.org/support/users/sagarm/)
 * (@sagarm)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-117/)
 * Hi,
    I am getting warning on login page.
 * Cannot modify header information – headers already sent by (output started at/
   home/previewa/public_html/wp-content/plugins/woocommerce/includes/class-wc-countries.
   php:1) in /home/previewa/public_html/wp-login.php on line 387
 * I checked blank spaces in **wp-login.php** by using simple text editor but nothing
   found.
 * Please advice.
 * Thanks,

Viewing 1 replies (of 1 total)

 *  [Tarun](https://wordpress.org/support/users/scrapur/)
 * (@scrapur)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-117/#post-6960278)
 * It is usually due to spaces, new lines, or other garbage at opening/closing PHP
   file <?php tag or after a closing ?> tag in wp-config.php. It can be other file
   too so need to check error message as it may list file name where the error occurred.
 * You can either upload error file from the backup or edit erroneous file. To edit
   the file one need to check below mentioned points:
 * 1. Download the file mentioned in the error message.
 * 2. Open that file in a plain text editor
 * 3. Check that the very first characters are <?php
 * 4. Check that the very last characters are ?>
 * 5. Place the cursor between the ? and >
 * 6. Now press the DELETE key on your computer and keep that key pressed for at
   least 15 seconds.
 * 7. Now type > and
 * 8. Save without pressing any other key at all.

Viewing 1 replies (of 1 total)

The topic ‘Cannot modify header information’ is closed to new replies.

## Tags

 * [header already sent](https://wordpress.org/support/topic-tag/header-already-sent/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Tarun](https://wordpress.org/support/users/scrapur/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-117/#post-6960278)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
