Support » Plugin: HumCommerce » PHP warnings filling the logs quickly

  • Resolved alx359

    (@alx359)


    Just installed, and getting the debug.log filled with these with a rate of ~4kb entries per min:

    [26-May-2019 18:57:55 UTC] PHP Notice:  Undefined index: HTTP_REFERER in /plugins/humcommerce/libs/class-humdashtracker.php on line 115
    [26-May-2019 18:57:55 UTC] PHP Notice:  Undefined index: PATH_INFO in /plugins/humcommerce/libs/class-humdashtracker.php on line 1640
    [26-May-2019 18:57:55 UTC] PHP Notice:  Undefined index: HTTP_ACCEPT_LANGUAGE in /plugins/humcommerce/libs/class-humdashtracker.php on line 119

    The issue can be easily fixed by adding checks like this in the offending and other similar lines:

    isset( $_SERVER['PATH_INFO'] ) && ...

    Please review your code with WP_DEBUG=1

    My configuration: WP5.2.1, WC3.6.3, PHP7.2, Ubuntu VPS

    Thanks.

  • You must be logged in to reply to this topic.