• Resolved djeyewater

    (@djeyewater)


    Hi

    With error reporting turned on I get the message:

    Notice: Undefined index: in wp-content/plugins/geoip-detect/filter.php on line 25

    I debugged it, and it was because
    $record->region was null for my IP.

    The issue can be fixed by modifying line 25 to:
    $record->region_name = !empty($GEOIP_REGION_NAME_COPY[$record->country_code][$record->region]) ? $GEOIP_REGION_NAME_COPY[$record->country_code][$record->region] : null;

    I’m presuming it’s correct that sometimes a region for an IP might be null?

    http://wordpress.org/plugins/geoip-detect/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index notice’ is closed to new replies.