• My error log includes thousands of repetitions of the following lines:

    [17-Mar-2023 16:14:04 UTC] PHP Warning: Undefined array key “SERVER_NAME” in /home/myid/public_html/wp-content/plugins/gridlist-view-for-woocommerce/includes/functions.php on line 26
    [17-Mar-2023 16:14:05 UTC] PHP Warning: Undefined array key “HTTP_HOST” in /home/myid/public_html/wp-content/plugins/gridlist-view-for-woocommerce/includes/functions.php on line 26
    [17-Mar-2023 16:14:05 UTC] PHP Warning: Undefined array key “SERVER_NAME” in /home/myid/public_html/wp-content/plugins/gridlist-view-for-woocommerce/includes/functions.php on line 26
    [17-Mar-2023 16:14:06 UTC] 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

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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

    Thread Starter mesmer7

    (@mesmer7)

    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

    LTPL

    (@logicrays)

    Any solution ?

    Thread Starter mesmer7

    (@mesmer7)

    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.

    vtxtools

    (@vtxtools)

    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.

    Thread Starter mesmer7

    (@mesmer7)

    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.

    • This reply was modified 11 months, 4 weeks ago by LTPL.
    • This reply was modified 11 months, 4 weeks ago by LTPL.
    Thread Starter mesmer7

    (@mesmer7)

    Replacing $_SERVER[‘HTTP_HOST’]|$_SERVER[‘SERVER_NAME’] in line 26 with ‘mydomainname.com’ did not work either. It broke the plugin.

    Thread Starter mesmer7

    (@mesmer7)

    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.

    Thread Starter mesmer7

    (@mesmer7)

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP Errors in log’ is closed to new replies.