Title: Cannot Modify Header Information
Last modified: April 3, 2017

---

# Cannot Modify Header Information

 *  [claine78](https://wordpress.org/support/users/claine78/)
 * (@claine78)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cannot-modify-header-information-131/)
 * Hello, After reading lots about this message, I have learnt that I am required
   to change some coding in the relevant file but I am not sure what I am meant 
   to be changing. I have the following code:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/peekaboo1949/public_html/www.llanddewcc.org/wp-content/plugins/drop-
   shadow-boxes/freemius/includes/entities/class-fs-payment.php:1) in /home/peekaboo1949/
   public_html/www.llanddewcc.org/wp-login.php on line 394
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/peekaboo1949/public_html/www.llanddewcc.org/wp-content/plugins/drop-
   shadow-boxes/freemius/includes/entities/class-fs-payment.php:1) in /home/peekaboo1949/
   public_html/www.llanddewcc.org/wp-login.php on line 407
 * From my understanding I have to change code on line 394 and 407 of the wp-login.
   php, which I have downloaded. The two lines of code are:
 * header(‘Content-Type: ‘.get_bloginfo(‘html_type’).’; charset=’.get_bloginfo(‘
   charset’));
 * AND
 * setcookie( TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN, $secure);
 * When I access the website at [http://www.llanddewcc.org/wp-login.php](http://www.llanddewcc.org/wp-login.php),
   I can see it from the front end but when I try login into the wordpress dashboard
   I get the following message:
 * ERROR: Cookies are blocked due to unexpected output. For help, please see this
   documentation or try the support forums.
 * Any help greatly appreciated.
 * Charlotte

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

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cannot-modify-header-information-131/#post-8987463)
 * The error message can be a bit misleading if you don’t already know how to read
   it. The error is actually on line 1 of the file `plugins/drop-shadow-boxes/freemius/
   includes/entities/class-fs-payment.php`. You’ll need to restore `wp-login.php`
   to its original state (hope you had a backup) and then I’d recommend asking at
   your plugin’s support forum for more assistance:
 * [https://wordpress.org/support/plugin/drop-shadow-boxes#new-post](https://wordpress.org/support/plugin/drop-shadow-boxes#new-post)
 *  Thread Starter [claine78](https://wordpress.org/support/users/claine78/)
 * (@claine78)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cannot-modify-header-information-131/#post-8989905)
 * Thank you [@stephencottontail](https://wordpress.org/support/users/stephencottontail/).
 * Unfortunately I did not create a backup but I have learnt from this to do so.
   I have downloaded the wp-login.php and looked on line one which just shows <?
   php in red. Is there anyway to fix this php file myself?
 * Charlotte
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cannot-modify-header-information-131/#post-8991595)
 * Perhaps I wasn’t clear. The error is not in `wp-login.php`, so you don’t need
   to do anything with that file. The error is actually on line 1 of `plugins/drop-
   shadow-boxes/freemius/includes/entities/class-fs-payment.php`, which is why I
   suggested that you post at your plugin’s support forum: [https://wordpress.org/support/plugin/drop-shadow-boxes#new-post](https://wordpress.org/support/plugin/drop-shadow-boxes#new-post)
 *  Thread Starter [claine78](https://wordpress.org/support/users/claine78/)
 * (@claine78)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cannot-modify-header-information-131/#post-9001972)
 * Thank you [@stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * This is much clearer and I will post in that area.

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

The topic ‘Cannot Modify Header Information’ is closed to new replies.

## Tags

 * [Cannot modify header information](https://wordpress.org/support/topic-tag/cannot-modify-header-information/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [claine78](https://wordpress.org/support/users/claine78/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/cannot-modify-header-information-131/#post-9001972)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
