Plugin Author
RazyRx
(@razyrx)
Hello,
It is strange that server variable do not have those values.
Fix will be added in next plugin release.
Regards,
Oleg
Okay. What about the last error. Why is it saying that Grid/list is setting header information. I set that in my .htaccess file.
Plugin Author
RazyRx
(@razyrx)
Hello,
Warning Cannot modify header information means that some information displayed before plugin set some cookie or set some header in PHP.
Regards,
Oleg
I figured out how to set the SERVER_NAME variable in the htaccess file. So I think I’ve eliminated those errors. But I don’t know what to do about the “Cannot modify header information” warning.
I am also getting the error log entry:
PHP Warning: Cannot modify header information – headers already sent in /home/myid/public_html/wp-content/plugins/gridlist-view-for-woocommerce/includes/functions.php on line 26
I have tried deactivating all other plugins and the warning persists, except when I also deactivate WooCommerce. Of course, the two plugins ought to be compatible.
I was wrong about setting the variable in the htaccess file. That doesn’t work. As a temporary solution, I replaced $_SERVER[‘HTTP_HOST’]|$_SERVER[‘SERVER_NAME’] in line 26 with ‘mydomainname.com’. We’ll see if that fixes it.
I have checked but not working.
Replacing $_SERVER[‘HTTP_HOST’]|$_SERVER[‘SERVER_NAME’] in line 26 with ‘mydomainname.com’ did not work either. It broke the plugin.
UPgrading to 1.1.3.8 seems to have solved the cookie error. But I’m still seeing this error:
[03-Jun-2023 15:55:40 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/mesmer17/public_html/wp-content/plugins/gridlist-view-for-woocommerce/includes/functions.php on line 27
WordPress logged this error 281 times since I updated the plugin yesterday. I set my headers in my .htaccess file, and this line seems to trying (and failing) to override that.
Also still seeing this error
[04-Jun-2023 16:21:23 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/mesmer17/public_html/wp-content/plugins/gridlist-view-for-woocommerce/includes/functions.php on line 26