• 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

    (@razyrx)

    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

    (@timbre-design)

    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

    (@razyrx)

    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

    (@timbre-design)

    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.

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.