Title: PHP warning: headers already sent
Last modified: November 23, 2022

---

# PHP warning: headers already sent

 *  [Dave Loodts](https://wordpress.org/support/users/davelo/)
 * (@davelo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-headers-already-sent/)
 * There is this PHP warning: Cannot modify header information – headers already
   sent
 * On line:
    wp-content/plugins/pitchprint/pitchprint.php in register_session at
   line 798 setcookie(‘pitchprint_sessId’, uniqid(‘pp_w2p_’, true), time()+60*60*
   24*30, ‘/’);
 * Can you fix this please?
    It generates -in our case- some 3K errors per day.

Viewing 1 replies (of 1 total)

 *  Plugin Author [flexcubed](https://wordpress.org/support/users/flexcubed/)
 * (@flexcubed)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-headers-already-sent/#post-16260302)
 * Hi Dave,
 * Thanks for reaching out to us.
 * We create a session cookie for our plugin when the WordPress action “init” is
   triggered. This is the earliest stage on WordPress that we could possibly set
   the cookies. So there must be a plugin or something on your site that is outputting
   data during the init action. Thus the error.
 * Are you able to check where the output could be coming from?

Viewing 1 replies (of 1 total)

The topic ‘PHP warning: headers already sent’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [flexcubed](https://wordpress.org/support/users/flexcubed/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-headers-already-sent/#post-16260302)
 * Status: not resolved