Support » Plugin: WPFront Notification Bar » PHP Warning: Cannot modify header information – headers already sent

  • Resolved sylvain68

    (@sylvain68)


    Hello,

    @syammohanm: Thank you very much again for your great plugin!

    Just a little message to report a warning in my debug.log file:

    PHP Warning: Cannot modify header information – headers already sent in /www/wp-content/plugins/wpfront-notification-bar/classes/class-wpfront-notification-bar.php on line 63

    Setcookie() must be probably invoked before any output is made (I didn’t look any further). If the problem is there, you can for example use the output buffering or setting the cookie before output.

    FYI I use the latest version of the plugin: 1.7.1

    Have a happy Easter!

    Sylvain

Viewing 6 replies - 1 through 6 (of 6 total)
  • Same issue here. Our error log is full of the WPFront Notification bar PHP warnings. Any solution to this?

    Thanks for the plugin!!

    bump. Error log filled with:

    [31-Jul-2020 23:35:24 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/public_html/wp-content/plugins/wpfront-notification-bar/classes/class-wpfront-notification-bar.php on line 63

    bump. Same here: error log filled with the same PHP warning.

    hipchexx

    (@hipchexx)

    Bump again, same issue, same warning

    Plugin Author Syam Mohan

    (@syammohanm)

    Can you test with the latest version?

    Thanks

    Thread Starter sylvain68

    (@sylvain68)

    Hello @syammohanm,

    I no longer have this warning.

    But I can’t tell you that it’s the latest version of the plugin that fixes this. Indeed, I already had no more this warning in my logs before updating the plugin.

    Maybe there was a conflict with another plugin that I would have updated in the meantime or with an option of your plugin (without knowing which one) that I was using previously, that I would have disabled in the meantime and that was generating this warning.

    Other users may be able to tell you more.

    Thanks for your plugin and feedback anyway!

    Sylvain

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Warning: Cannot modify header information – headers already sent’ is closed to new replies.