Title: Cannot modify header information – headers already sent (solution)
Last modified: October 13, 2017

---

# Cannot modify header information – headers already sent (solution)

 *  Resolved [p4r4n1c](https://wordpress.org/support/users/p4r4n1c/)
 * (@p4r4n1c)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/)
 * In Regards to [Patrich Beuken](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-27/)‘
   s Topic, wich was marked as resolved but with no answer given, here’s my solution:
 * If you don’t need the debug output,
    in wp-content/plugins/wp-invites/wp-invites.
   php line 26 change `echo "\n<!--wp-invites debug:\n" . implode("\n\n", $this-
   >debug_log) . "\n-->";` to `//echo "\n<!--wp-invites debug:\n" . implode("\n\
   n", $this->debug_log) . "\n-->";`
 * basically deactivating this line.

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

 *  Plugin Author [themaster5_07](https://wordpress.org/support/users/themaster5_07/)
 * (@themaster5_07)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/#post-9585957)
 * I have changed the status of Patrich Beuken’s post and will look into this issue
   this weekend. I was under the impression that this was resolved before I took
   over development and support. Thank you for your feedback.
 *  Plugin Author [themaster5_07](https://wordpress.org/support/users/themaster5_07/)
 * (@themaster5_07)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/#post-9586159)
 * [@p4r4n1c](https://wordpress.org/support/users/p4r4n1c/), have you been able 
   to duplicate this error? It seems as though this error would only occur if debugging
   is activated in the plugin configuration. I am thinking about disabling this 
   debugging information altogether as I see this as having very little value to
   the end user, they just want it to work!
 * As the debugging was added by the former developer, do you yourself see the need
   to having the debugging information available to the end users? (I wish there
   was a way to poll all users of the plugin with this question.)
 *  Thread Starter [p4r4n1c](https://wordpress.org/support/users/p4r4n1c/)
 * (@p4r4n1c)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/#post-9586503)
 * I did deactivate debugging, both as an option aswell as deactivating the code.
   
   But the error still persists.
 * I’d suggest that the plugin cannot resolve that ./wp.login.php was renamed to
   another link.
 *  Plugin Author [themaster5_07](https://wordpress.org/support/users/themaster5_07/)
 * (@themaster5_07)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/#post-9589521)
 * [@p4r4n1c](https://wordpress.org/support/users/p4r4n1c/) please update your plugin
   to the newest version 2.52 and confirm that this updated corrected your concerns.
 *  Plugin Author [themaster5_07](https://wordpress.org/support/users/themaster5_07/)
 * (@themaster5_07)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/#post-9589522)
 * [@p4r4n1c](https://wordpress.org/support/users/p4r4n1c/) Oh, and be sure to deactivate
   debugging mode. If debugging is enabled, then the problem with page redirection
   will still be present. I have added code statements to not run debugging functions
   if debugging is not enabled.
 *  Thread Starter [p4r4n1c](https://wordpress.org/support/users/p4r4n1c/)
 * (@p4r4n1c)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/#post-9590769)
 * Yes, the white Screen “Bug” was solved now! thank you

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-invites.svg)
 * [WP-Invites](https://wordpress.org/plugins/wp-invites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-invites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-invites/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-invites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-invites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-invites/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [p4r4n1c](https://wordpress.org/support/users/p4r4n1c/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-solution/#post-9590769)
 * Status: resolved