• Follow-up to my last note here. I set the Google Maps provider and entered an existing API key. Again, I went to my user profile, scrolled down and requested Use My Current Location.

    The error below was returned. I accidentally used a key that was previously configured for this domain, but not for this subdomain. I understand the REQUEST_DENIED error from Google. My message here is that the response indicated a status error, but the plugin code continued to look for properties from a good response anyway. I recommend checking the response and displaying an error, before attempting to process the data detail.

    Undefined variable: country_code in class-geo-provider-google.php on line 183
    Undefined variable: number in class-geo-provider-google.php on line 184
    Undefined variable: street in class-geo-provider-google.php on line 184
    Undefined variable: street in class-geo-provider-google.php on line 189
    Undefined index: country-code in class-location-taxonomy.php on line 651
    {"raw":{"error_message":"API keys with referer restrictions cannot be used with this
    API.","results":[],"status":"REQUEST_DENIED"},"timezone":"America\/Los_Angeles","offset":"-07:00","seconds":-

    I hope that helps.
    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘JSON parsing continues on payload with error’ is closed to new replies.