• Resolved Brian Henry

    (@brianhenryie)


    Minor issue for your attention:

    PHP Notice: Undefined index: REMOTE_ADDR in /path/to/wp-content/plugins/webappick-product-feed-for-woocommerce/libs/WebAppick/AppServices/Insights.php on line 405

    I’ve seen this happen before when functions are run on cron but presume they’ll be invoked by a request.

    This should fix it:

    return apply_filters( 'WebAppick_is_local', isset( $_SERVER['REMOTE_ADDR'] ) ? in_array( $_SERVER['REMOTE_ADDR'], [ '127.0.0.1', '::1' ] ) : true );

    • This topic was modified 4 years, 3 months ago by Brian Henry.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: REMOTE_ADDR’ is closed to new replies.