• Hi,

    I’ve been using this plugin for a while and it’s working fine. However when I turn on DEBUG, I see it is generating lots of errors:

    Notice: Undefined index: HTTP_CF_CONNECTING_IP in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29 
    Notice: Undefined index: HTTP_X_FORWARDED in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29 
    Notice: Undefined index: HTTP_FORWARDED_FOR in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29 
    Notice: Undefined index: HTTP_FORWARDED in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29 
    Notice: Undefined index: HTTP_X_REAL_IP in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29 
    Notice: Undefined index: HTTP_CF_VISITOR in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 57

    I have made changes to check that a header exists before accessing its value. See this pull request:

    https://github.com/wp-plugins/zarza-real-ip/pull/1

    Seems to be working for me, but please test!

  • The topic ‘Errors in DEBUG mode’ is closed to new replies.