Title: Please fix this error! PHP Warning: Cannot modify header information
Last modified: August 6, 2024

---

# Please fix this error! PHP Warning: Cannot modify header information

 *  [Timbre Design](https://wordpress.org/support/users/timbre-design/)
 * (@timbre-design)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/please-fix-this-error-php-warning-cannot-modify-header-information/)
 * It has been almost 2 years since this error was first posted in your support 
   threads.
   PHP Warning: Cannot modify header information – headers already sent
   in /plugins/gridlist-view-for-woocommerce/includes/functions.php on line 27
 * Please fix this once and for all, thank you!!

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

 *  Plugin Author [RazyRx](https://wordpress.org/support/users/razyrx/)
 * (@razyrx)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/please-fix-this-error-php-warning-cannot-modify-header-information/#post-17941475)
 * Hello,
   We cannot fix it from our side, because it is depend on other plugin or
   theme.Our plugin set cookie on initialization, but if some plugin dispaly anything
   on page before it, then it cause this issue.Regards,Oleg
 *  Thread Starter [Timbre Design](https://wordpress.org/support/users/timbre-design/)
 * (@timbre-design)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/please-fix-this-error-php-warning-cannot-modify-header-information/#post-17951949)
 * Hmm are you so sure about that? It’s easily fixed by simply adding:
 * if( !**headers_sent()** )
 * before
 * **setcookie ( ****‘br_lgv_stat’****, ****$cookie_lgv****, 0, ****‘/’****, ****
   $domain**** )**;
 *  Plugin Author [RazyRx](https://wordpress.org/support/users/razyrx/)
 * (@razyrx)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/please-fix-this-error-php-warning-cannot-modify-header-information/#post-17954439)
 * Hello,
   It will remove PHP notice, but not issue with set this cookie on page,
   that can be not as good, because some functionality can just do not work and 
   there will be no message to show it.Regards,Oleg
 *  Thread Starter [Timbre Design](https://wordpress.org/support/users/timbre-design/)
 * (@timbre-design)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/please-fix-this-error-php-warning-cannot-modify-header-information/#post-17960145)
 * You are quite mistaken, as the cookie still gets set. Please do some research.
   The notice is there because of your plugin, please take responsibility.
 *  [martingfisher](https://wordpress.org/support/users/martingfisher/)
 * (@martingfisher)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/please-fix-this-error-php-warning-cannot-modify-header-information/#post-18021985)
 * Has anybody managed to solve this issue? My error log was 150mb with around half
   a million of these reports
 * [17-Sep-2024 22:53:51 UTC] PHP Warning:  Cannot modify header information – headers
   already sent in /home/azipbfch/public_html/wp-content/plugins/gridlist-view-for-
   woocommerce/includes/functions.php on line 27
    -  This reply was modified 1 year, 8 months ago by [martingfisher](https://wordpress.org/support/users/martingfisher/).

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

The topic ‘Please fix this error! PHP Warning: Cannot modify header information’
is closed to new replies.

 * ![](https://ps.w.org/gridlist-view-for-woocommerce/assets/icon-256x256.gif?rev
   =2772697)
 * [Grid/List View for WooCommerce](https://wordpress.org/plugins/gridlist-view-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gridlist-view-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gridlist-view-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/gridlist-view-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gridlist-view-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gridlist-view-for-woocommerce/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 5 replies
 * 3 participants
 * Last reply from: [martingfisher](https://wordpress.org/support/users/martingfisher/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/please-fix-this-error-php-warning-cannot-modify-header-information/#post-18021985)
 * Status: not resolved