Title: PHP Warning Cannot modify header
Last modified: July 29, 2024

---

# PHP Warning Cannot modify header

 *  Resolved [WebKernel](https://wordpress.org/support/users/webkernel/)
 * (@webkernel)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/)
 *     ```
       [29-Jul-2024 08:55:13 UTC] PHP Warning:  Cannot modify header information - headers already sent in /home/xxxxxxxxx/public_html/wp-content/plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171[29-Jul-2024 08:55:24 UTC] PHP Warning:  Cannot modify header information - headers already sent in /home/xxxxxxxxx/public_html/wp-content/plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171[29-Jul-2024 08:56:00 UTC] PHP Warning:  Cannot modify header information - headers already sent in /home/xxxxxxxxx/public_html/wp-content/plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171[29-Jul-2024 08:56:26 UTC] PHP Warning:  Cannot modify header information - headers already sent in /home/xxxxxxxxx/public_html/wp-content/plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171[29-Jul-2024 08:56:57 UTC] PHP Warning:  Cannot modify header information - headers already sent in /home/xxxxxxxxx/public_html/wp-content/plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171[29-Jul-2024 08:57:24 UTC] PHP Warning:  Cannot modify header information - headers already sent in /home/xxxxxxxxx/public_html/wp-content/plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171
       ```
   
 * Hello
 * i have many php warnings on **class-wps-telegram-chat-public.php on line 171 **

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

 *  Plugin Author [wpsolution](https://wordpress.org/support/users/wpsolution/)
 * (@wpsolution)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-17924022)
 * Hi, need more information. Probably compatibility issue with other plugins. What
   version of PHP? Have you tried disabling third-party plugins, changing the theme?
 *  [norbou](https://wordpress.org/support/users/norbou/)
 * (@norbou)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-17981215)
 * Hi guys, 
   this is amazing plugin for live chat!
 * I have the same problem on PHP 8.1. I have tested plugin on 2 different websites,
   one with WP 6.3.5, second website is running WP 6.6.1 with default theme. (demo.
   norbou.com)
 * [28-Aug-2024 16:26:20 UTC] PHP Warning: Cannot modify header information – headers
   already sent in /home/u117824311/domains/demo.norbou.com/public_html/wp-content/
   plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171
 * I have tried delete last row in the file specified, but no results.
 * But wait, you are right that if the plugin is activated as only single one, the
   error does not occur. But with many plugins, like Hostinger AI or LSCache, this
   error occurs every single page load. I have noticed the problem after my debug
   log had 40 MB.
 * I like to help you with the debugging, please let me know.
 * Thank you!
    -  This reply was modified 1 year, 9 months ago by [norbou](https://wordpress.org/support/users/norbou/).
 *  [norbou](https://wordpress.org/support/users/norbou/)
 * (@norbou)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-17981414)
 * Are there are some special settings for cache plugins like LSCache for this plugin
   needed?
 *  Plugin Author [wpsolution](https://wordpress.org/support/users/wpsolution/)
 * (@wpsolution)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-17981460)
 * Hi! I’m on vacation now, I’ll be back early September. I’ll update you. Thanks.
 *  Plugin Author [wpsolution](https://wordpress.org/support/users/wpsolution/)
 * (@wpsolution)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-17996132)
 * Hi [@norbou](https://wordpress.org/support/users/norbou/) I’m back and tried 
   many times to get this error. I installed LSCache but I don’t get these errors.
   You can contact me in telegram [https://t.me/wpSolutionOrg](https://t.me/wpSolutionOrg)
 *  Plugin Author [wpsolution](https://wordpress.org/support/users/wpsolution/)
 * (@wpsolution)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-17996458)
 * Anyway, I have released an update that contains an improvement to avoid the warning.
   The topic is closed as resolved due to the plugin update.
 *  [norbou](https://wordpress.org/support/users/norbou/)
 * (@norbou)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-18025415)
 * Hello, nice to hear from you, I have enabled new version of the plugin and it
   seems to be fixed now. I will check the debug log after some days.
 * Thank you!
 *  [norbou](https://wordpress.org/support/users/norbou/)
 * (@norbou)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-18032985)
 * Tested. The problem is solved! That’s grate!
 * I am getting sometimes only the PHP notice:
   [24-Sep-2024 09:36:43 UTC] PHP Warning:
   Undefined array key “nonce” in ***/wp-content/plugins/wps-telegram-chat/public/
   partials/wps-telegram-chat-public-handler.php on line 19
 * Can I define a nonce somehow?
    -  This reply was modified 1 year, 8 months ago by [norbou](https://wordpress.org/support/users/norbou/).
 *  Plugin Author [wpsolution](https://wordpress.org/support/users/wpsolution/)
 * (@wpsolution)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-18040434)
 * [@norbou](https://wordpress.org/support/users/norbou/) Hi, I’ll check and fix
   it in the next update. Thanks for your patience!

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

The topic ‘PHP Warning Cannot modify header’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wps-telegram-chat_58c5e9.svg)
 * [WPS Telegram Chat](https://wordpress.org/plugins/wps-telegram-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-telegram-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-telegram-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-telegram-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-telegram-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-telegram-chat/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [wpsolution](https://wordpress.org/support/users/wpsolution/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-4/#post-18040434)
 * Status: resolved