Title: Google Map API Key missing
Last modified: November 14, 2016

---

# Google Map API Key missing

 *  [umeeshh](https://wordpress.org/support/users/umeeshh/)
 * (@umeeshh)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/google-map-api-key-missing/)
 * 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](https://wordpress.org/support/users/umeeshh/)
 * (@umeeshh)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/google-map-api-key-missing/#post-8433454)
 * 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](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/google-map-api-key-missing/#post-8446134)
 * 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](https://plugins.trac.wordpress.org/browser/wp-store-locator/tags/2.2.4/inc/wpsl-functions.php#L449)
   in PHP.
 * Can you try to create a new [browser](https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,places_backend&keyType=CLIENT_SIDE&reusekey=true)
   and [server](https://console.developers.google.com/flows/enableapi?apiid=geocoding_backend&keyType=SERVER_SIDE&reusekey=true)
   key, and then fill them in the correct fields, and try again?
 * Set the referrer for the browser key to [http://domain.com/*](http://domain.com/*)
   and for the server key to the [IP](https://www.site24x7.com/find-ip-address-of-web-site.html)
   of your server.
 *  Thread Starter [umeeshh](https://wordpress.org/support/users/umeeshh/)
 * (@umeeshh)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/google-map-api-key-missing/#post-8447420)
 * 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](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/google-map-api-key-missing/#post-8447497)
 * 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.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/google-map-api-key-missing/#post-8447497)
 * Status: not resolved