Title: Google Map API Error
Last modified: June 22, 2018

---

# Google Map API Error

 *  Resolved [marinafatbuzz](https://wordpress.org/support/users/marinafatbuzz/)
 * (@marinafatbuzz)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/google-map-api-error-3/)
 * Hello,
 * I have been using the plugin for a while now. But recently it started showing
   an API error and a warning. _(see below)_
 * > Google Maps JavaScript API error: MissingKeyMapError [https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error](https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error)
   > Google Maps JavaScript API warning: NoApiKeys [https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys](https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys)
 * I have two pages where I am using a map; the contact page and the store locator
   page. The former uses ACF Map field and the latter your plugin.
 * I have enqueued the API script on my functions in order to have the ACF script
   too (see the code below).
 *     ```
       /* Google Map */
       function my_theme_add_scripts() {
        wp_enqueue_script( 'google-map', 'https://maps.googleapis.com/maps/api/js?key=XXX', array(), '3', true );
        wp_enqueue_script( 'google-map-init', get_template_directory_uri() . '/dist/scripts/google-maps.js', array('google-map', 'jquery'), '0.1', true );
       }
   
       add_action( 'wp_enqueue_scripts', 'my_theme_add_scripts' );
   
       function my_acf_google_map_api( $api ){
   
        $api['key'] = 'XXX';
   
        return $api;
   
       }
   
       add_filter('acf/fields/google_map/api', 'XXX');
       ```
   
 * And it was working just fine up until the day before. Is it something to do with
   Google changing the API console or is it something with the plugin?
 * NOTE: When I saw this error I updated to latest version but the same issue still
   occurs.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/google-map-api-error-3/#post-10424933)
 * Try to enable the compatibility mode on the settings page ( tools section ). 
   This will try to unload other Google Maps scripts on the store locator page.
 *  Thread Starter [marinafatbuzz](https://wordpress.org/support/users/marinafatbuzz/)
 * (@marinafatbuzz)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/google-map-api-error-3/#post-10424962)
 * Hi,
 * Thank you for your reply.
 * It is already enabled that’s why it was working (I was using it like that for
   over two months)
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-map-api-error-3/#post-10430429)
 * Try to load the ACF scripts conditionally with [is_page](https://developer.wordpress.org/reference/functions/is_page/)?
 *  Thread Starter [marinafatbuzz](https://wordpress.org/support/users/marinafatbuzz/)
 * (@marinafatbuzz)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-map-api-error-3/#post-10432442)
 * Great, that worked!
 * Thank you very much
    -  This reply was modified 7 years, 11 months ago by [marinafatbuzz](https://wordpress.org/support/users/marinafatbuzz/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google Map API Error’ 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/)

## Tags

 * [Google API](https://wordpress.org/support/topic-tag/google-api/)

 * 4 replies
 * 2 participants
 * Last reply from: [marinafatbuzz](https://wordpress.org/support/users/marinafatbuzz/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/google-map-api-error-3/#post-10432442)
 * Status: resolved