• Resolved Tony G

    (@starbuck)


    After getting an unrestricted API key (I don’t know yet why that’s required, but we’ll go with it) I did another User Profile request for Use My Current Location.

    The response shows a great, complete JSON response. But with an error:

    Undefined variable: country_code in
        .../simple-location/includes/class-geo-provider-google.php
        on line 183

    The root-level key is “country-code” … dash, not underscore.
    In “term_details”, the key is “country”.

    I hope that helps.

    Thanks again!!!

Viewing 1 replies (of 1 total)
  • Plugin Author David Shanske

    (@dshanske)

    Actually, you are wrong in this case. It was an undeclared variable called $country_code. In one of the other providers, I declared it, in this one, I did not. Fixed in dev.

Viewing 1 replies (of 1 total)

The topic ‘Geo-Provider-Google, wrong element: country_code’ is closed to new replies.