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

---

# PHP Warning: Cannot modify header information

 *  Resolved [Alian Schiavoncini](https://wordpress.org/support/users/alian/)
 * (@alian)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information-29/)
 * Hi all, I’m experiencing several warnings on a site to which I installed the 
   plugin. Error_log messages:
    - PHP Warning: Cannot modify header information – headers already sent in /public_html/
      wp-content/plugins/enable-cors/src/Helpers/Headers.php on line 35
    - PHP Warning: Cannot modify header information – headers already sent in /public_html/
      wp-content/plugins/enable-cors/src/Helpers/Headers.php on line 38
 * See also the plugin setting screenshot: [https://ibb.co/Svsj7MN](https://ibb.co/Svsj7MN)
   
   Website and server info: PHP 8.2, WP 6.3.2.Looking forward to hearing from you.
   Thanks!

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

 *  Plugin Author [Dev Kabir](https://wordpress.org/support/users/devkabir/)
 * (@devkabir)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information-29/#post-17538811)
 * Hi [@alian](https://wordpress.org/support/users/alian/)
 * Thank you for reaching out and bringing this to my attention. The warnings you’re
   experiencing seem to be related to header modification in this plugin’s code.
 * Here’s what you can try to resolve this:
 * Disable all other plugins and see if the issue persists. If it doesn’t, re-enable
   them one by one to find the conflicting plugin.
 * If you continue to experience issues after trying these steps, please let me 
   know, and I’ll do my best to assist you further.
 * Thank you for your patience and cooperation.
 *  Plugin Author [Dev Kabir](https://wordpress.org/support/users/devkabir/)
 * (@devkabir)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information-29/#post-17541499)
 * Since we haven’t received a response from you, I’m proceeding to close this thread.
   Please know that you’re welcome to contribute to this thread at any time by adding
   your message.

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

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

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

 * 4 replies
 * 2 participants
 * Last reply from: [Dev Kabir](https://wordpress.org/support/users/devkabir/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information-29/#post-17541499)
 * Status: resolved