• Hi

    I have a problem with Google API Key. It is added in Google, on testing server all works fine, but on client host it says API key is missing. I’ve added url creditencials – not workin. Remowed all creditensials – same ??

    thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter umeeshh

    (@umeeshh)

    I’ve made it. Don’t know if it is bug or not but:

    in class-admin.php there’s line:

    wp_enqueue_script( ‘wpsl-gmap’, ( ‘//maps.google.com/maps/api/js’ . wpsl_get_gmap_api_params( ‘browser_key’ ) ), false, WPSL_VERSION_NUM, true );

    But there’s no such an import for server_key. So I’ve pasted my server API key into Browser key field and it’s working now. But with server key field wasn’t

    It took me 3 days….. ??

    regards ??

    Plugin Author Tijmen Smit

    (@tijmensmit)

    The browser key is only used together with the Google Maps JavaScript API on the front-end, not the server key. The server key is used to call the Geocode API in PHP.

    Can you try to create a new browser and server key, and then fill them in the correct fields, and try again?

    Set the referrer for the browser key to https://domain.com/* and for the server key to the IP of your server.

    Thread Starter umeeshh

    (@umeeshh)

    Thanks for your answer, I’ve misunderstood all of this I think, but somehow it was working on test server with server key only so maybe that’s why.

    regards

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Did you use a Google Maps application before on the test server? API keys are required since June or so, but only on domains that never used Google Maps before ( this was done to prevent breaking ever site out there already using Google Maps ). So maybe that’s what’s going on here, and it simply ignored the key.

    The whole things with the API keys works a bit confusing sometimes anyway. Some users have to set a referrer to make it work, while it works fine for other without one. And other users seem to have to verify the domain in the API Console to make it work, which seems to be an undocumented way to solve the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google Map API Key missing’ is closed to new replies.