Title: [Plugin: Redirection] ERROR: Warning: Cannot modify header information
Last modified: August 20, 2016

---

# [Plugin: Redirection] ERROR: Warning: Cannot modify header information

 *  [cjohnweb](https://wordpress.org/support/users/cjohnweb/)
 * (@cjohnweb)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/)
 * I’ve figured after some time of trial and error that this plugin is causing errors
   with the newest verison of wordpress.
 * Here are some of the errors I get –
 * I get this at /wp-admin when I am not logged in
 * Warning: Cannot modify header information – headers already sent by (output started
   at /wp-includes/general-template.php:2099) in /wp-includes/pluggable.php on line
   881
 * Warning: Cannot modify header information – headers already sent by (output started
   at /wp-includes/general-template.php:2099) in /wp-includes/pluggable.php on line
   881
 * In other plugins, like a google analytics plugin I use, I get errors like this:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /wp-includes/general-template.php:2099) in /wp-content/plugins/redirection/
   ajax.php on line 23
 * Warning: Cannot modify header information – headers already sent by (output started
   at /wp-includes/general-template.php:2099) in /wp-content/plugins/redirection/
   ajax.php on line 24
 * The error noted – plugins/redirection/ajax.php on line 24. I have not looked 
   to see what this error is caused from, but none the less I thought I would share
   this in hopes that everyone else who is also having this error can get past it.
   The problem is that this error does not cause wordpress to disable the plugin,
   but the error does prevent you from logging into /wp-admin. If you are logged
   in already, you are fine for the most part, but if you are not logged in and 
   access /wp-admin, you get an error and no login form.
 * So I’m thinking, how do people having this error find how to fix the issue? Can
   wordpress force an update somehow so the error just “goes away” without users
   having to first disable the plugin, login to wp-admin, update the plugin and 
   reactivate it…? Otherwise many people will not know how to fix the problem.
 * Thanks
 * [http://wordpress.org/extend/plugins/redirection/](http://wordpress.org/extend/plugins/redirection/)

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

1 [2](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/page/2/?output_format=md)

 *  [pacovilla](https://wordpress.org/support/users/pacovilla/)
 * (@pacovilla)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821894)
 * The problem is going to be in the general-template.php file. See: [ Locate the extra line(s) or space(s) and the problem will stop.](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  [DatingAdviceTipsAndSecrets](https://wordpress.org/support/users/datingadvicetipsandsecrets/)
 * (@datingadvicetipsandsecrets)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821895)
 * Doesn’t seem to be plugin related. We’re getting the same error after updating
   to 3.4 and don’t use that plugin.
 * As to the general-template.php file line 2099 being the culprit here’s the code
   directly from wordpress for line 2099:
 *  echo apply_filters( ‘wp_admin_css’, “<link rel=’stylesheet’ href='” . esc_url(
   wp_admin_css_uri( $file ) ) . “‘ type=’text/css’ />\n”, $file );
 *  (the offending line). The var $file contains wp-admin but there are no extra
   spaces in any incarnation we looked at.
 * We logged in using wp-login.php instead of wp-admin but we also get errors on
   dashboard again because of line 2099 in general-template which is the function
   wp_admin_css. Errors:
 * wp-includes/general-template.php:2099) in /home/xxx/public_html/wp-includes/option.
   php on line 563
 * wp-includes/general-template.php:2099) in /home/xxx/public_html/wp-includes/option.
   php on line 564
 * both of those lines in option.php call setcookie
 * short of commenting out the echo on 2099 (which works) it’s making us crazy. 
   Anyone got a fix?
 *  [fotodc](https://wordpress.org/support/users/fotodc/)
 * (@fotodc)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821905)
 * I have the same problem
 * Warning: Cannot modify header information – headers already sent by (output started
   at /wp-includes/general-template.php:2099) in /wp-includes/class-wp-ajax-response.
   php on line 129
 * Warning: Cannot modify header information – headers already sent by (output started
   at /wp-includes/general-template.php:2099) in /wp-includes/pluggable.php on line
   881
 *  [fotodc](https://wordpress.org/support/users/fotodc/)
 * (@fotodc)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821907)
 * In my site, I turned off one of the plugins. Now is OK.
 *  [WPMarmite](https://wordpress.org/support/users/alexandreb3/)
 * (@alexandreb3)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821908)
 * Hi,
 * I’ve got the same problem. I just turned off the popup domination and everything
   was working again 🙂
 *  [Jajton](https://wordpress.org/support/users/jajton/)
 * (@jajton)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821912)
 * having the same issue when i update functions.php….
 * would be nice if anyone could help me 🙂
 *  [Jajton](https://wordpress.org/support/users/jajton/)
 * (@jajton)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821913)
 * I cant visit admin site…
 * Pls help
 *  [EWSEL Team](https://wordpress.org/support/users/mwteam/)
 * (@mwteam)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821914)
 * edit ur functions.php from ftp software and see on start and end if ther is any
   space remove it
 *  [Dreadpoule](https://wordpress.org/support/users/dreadpoule/)
 * (@dreadpoule)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821929)
 * Oh god thanks for the space council, that’s work !!!
 *  [maianpc](https://wordpress.org/support/users/maianpc/)
 * (@maianpc)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821930)
 * hi i need help now. please!!!!!
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/67/9943067/html/wp-content/plugins/drgen-social/drgen-social.
   php:1) in /home/content/67/9943067/html/wp-login.php on line 362
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/67/9943067/html/wp-content/plugins/drgen-social/drgen-social.
   php:1) in /home/content/67/9943067/html/wp-login.php on line 374
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/67/9943067/html/wp-content/plugins/drgen-social/drgen-social.
   php:1) in /home/content/67/9943067/html/wp-includes/pluggable.php on line 680
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/67/9943067/html/wp-content/plugins/drgen-social/drgen-social.
   php:1) in /home/content/67/9943067/html/wp-includes/pluggable.php on line 681
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/67/9943067/html/wp-content/plugins/drgen-social/drgen-social.
   php:1) in /home/content/67/9943067/html/wp-includes/pluggable.php on line 682
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/67/9943067/html/wp-content/plugins/drgen-social/drgen-social.
   php:1) in /home/content/67/9943067/html/wp-includes/pluggable.php on line 881
 * Thanks
 *  [phil-wp](https://wordpress.org/support/users/phil-wp/)
 * (@phil-wp)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821933)
 * My two pence worth.
 * …
    SMTP -> get_lines(): $str is “535 5.7.8 Error: authentication failed: Authentication
   failed “ SMTP -> get_lines(): $data is “535 5.7.8 Error: authentication failed:
   Authentication failed “ SMTP -> ERROR: Password not accepted from server: 535
   5.7.8 Error: authentication failed: Authentication failed SMTP -> get_lines():
   $data was “” SMTP -> get_lines(): $str is “250 2.0.0 Ok “ SMTP -> get_lines():
   $data is “250 2.0.0 Ok “ SMTP -> FROM SERVER:250 2.0.0 Ok
 * Warning: Cannot modify header information – headers already sent by (output started
   at $HOME/public_html/wp-includes/class-smtp.php:803) in $HOME/public_html/wp-
   includes/pluggable.php on line 881
 * First – WP 3.4.2 $HOME/config.php has no final ?>
 * Second – using plugin SMTP, debug mode checked, left on accidentaly, throws out
   debug text whenever a comment is posted while attempting email notification of
   comment to author.
 * Third – The admin account password for SMTP email authentication had changed 
   but not reconfigured in the Plugin.
 * Solution: Banged head against wall, unchecked debug mode in SMTP, entered correct
   admin password.
 * The only puzzle left is how on earth the config file was working with the final?
   > tag missing.
 *  [rvnder](https://wordpress.org/support/users/rvnder/)
 * (@rvnder)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821936)
 * Not worked for me ..after removing the spaces.Also there is no** ?>** in wp-config
   file .
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/affiliat/public_html/wp-config.php:1) in /home/affiliat/public_html/
   wp-includes/pluggable.php on line 881
 *  [paul_saccone](https://wordpress.org/support/users/paul_saccone/)
 * (@paul_saccone)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821937)
 * I just ran into the same problem this morning.
 * In an effort to be tidy and document my custom code, I added a line containing
   comments just before some custom PHP in my child-theme’s functions.php file. 
   Once I put the comments inside of the PHP tags, the error went away.
 * Hope that helps everyone else too!
 *  [compmech](https://wordpress.org/support/users/compmech/)
 * (@compmech)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821939)
 * Removing the white space at the end of my functions.php file resolved this issue
   for me.
 * I add inadvertently left the white space after inserting and later removing a
   function.
 *  [webdevnewb123](https://wordpress.org/support/users/webdevnewb123/)
 * (@webdevnewb123)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/#post-2821941)
 * Yeah, most of the reasons this error always manifest is the excessive white spaces.
   The link below is very helpful. I just solved my problem with my theme-editor
   of which I mistakenly put excess white space after “<?php” of the functions.php.
   Hope this will help you too! Good luck!
 * [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)

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

1 [2](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/page/2/?output_format=md)

The topic ‘[Plugin: Redirection] ERROR: Warning: Cannot modify header information’
is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 16 replies
 * 15 participants
 * Last reply from: [k7sourabh](https://wordpress.org/support/users/k7sourabh/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-redirection-error-warning-cannot-modify-header-information/page/2/#post-2821946)
 * Status: not resolved