Hi,
Line 27 of functions.php is
setcookie ( ‘br_lgv_stat’, $cookie_lgv, 0, ‘/’, $domain );
According to php.net
“setcookie() defines a cookie to be sent along with the rest of the HTTP headers. Like other headers, cookies must be sent before any output from your script (this is a protocol restriction). This requires that you place calls to this function prior to any output, including <html> and <head> tags as well as any whitespace.”
As you can see this line is not there for sending headers. Most likely headers are sent because this line has an error on your site/server.
Please check for an error before the “PHP Warning: Cannot modify header information“. It can be right before it or in another error log eg with fatal/critical errors.
Regards,
Dmytro
@dholovnia,
There are no other errors in my log, just thousands of copies of this error. It’s even logged when I access pages where the script has previously been unloaded by Asset Cleanup.
I need you to tell me what could be causing the conflict. Could Asset Cleanup or Litespeed Cache be causing the conflict? Could be caused by moving all javascripts to the footers?
-
This reply was modified 2 years, 5 months ago by
mesmer7.
Hi,
This is PHP code. Moving assets will not help.
Btw what version of the plugin do you have?
What code do you have on line 27 of ‘gridlist-view-for-woocommerce/includes/functions.php’ file?
Regards,
Dmytro