Title: Google Maps api not working
Last modified: November 19, 2020

---

# Google Maps api not working

 *  Resolved [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/)
 * I have the following issue.
 * I have a store locator plugin in my website and it works with Google Maps Api.
   When i enable the Complianz plugin, no matter the settings i tried (Google Maps
   integration on or off), the map does not work and i see the following errors 
   in the console.
 * Uncaught ReferenceError: google is not defined
    <anonymous> [https://<mywebsite&gt](https://<mywebsite&gt);.
   gr/wp-content/plugins/wp-multi-store-locator-pro//assets/js/custom_script.js:
   43 jQuery 4 custom_script.js:43:24
 * Uncaught ReferenceError: google is not defined
    wpmsl_update_map [https://<mywebsite&gt](https://<mywebsite&gt);.
   gr/wp-content/plugins/wp-multi-store-locator-pro//assets/js/custom_script.js:
   194 <anonymous> [https://<mywebsite&gt](https://<mywebsite&gt);.gr/καταστηματα-
   πωλησης/:416 custom_script.js:194:20
 * I also tried putting the following in the ‘Script Center’ in the ‘Async scripts
   to execute on consent’ section, but the issue was not resolved.
 * plugins/wp-multi-store-locator-pro/assets/js/custom_script.js
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-maps-api-not-working-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13682065)
 * Hi [@evakalis](https://wordpress.org/support/users/evakalis/),
 * Can you enable safe mode under settings, and see if this works?
 * regards Aert
 *  Thread Starter [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13682085)
 * It is working in safe mode.
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13682284)
 * Hi [@evakalis](https://wordpress.org/support/users/evakalis/),
 * It seems Google is blocked somewhere else, and the map is dependent on Google
   being loaded regardless.
 * It is related to this plugin? [https://wordpress.org/plugins/wp-multi-store-locator/](https://wordpress.org/plugins/wp-multi-store-locator/)
 * regards Aert
 *  Thread Starter [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13682400)
 * Yes, this is the plugin.
 *  Thread Starter [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13686783)
 * I also tried the ‘Enable cookie blocker for ajax loaded content’ bit it had no
   affect.
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13687160)
 * HI [@evakalis](https://wordpress.org/support/users/evakalis/),
 * Did you remove this from the script center? plugins/wp-multi-store-locator-pro/
   assets/js/custom_script.js
 * This won’t help in this case.
 * After please disable safe mode, and disable integrations one by one, to see which
   one besides Google Maps could cause this issue.
 * regards Aert
 *  Thread Starter [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13687392)
 * I removed the script from the script center and I disabled the only integration(
   Facebook) I had enabled, but the issue remains.
 *  Thread Starter [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13687875)
 * I also tried with Google Maps integration on and off. It did not change anything.
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13688251)
 * Hi [@evakalis](https://wordpress.org/support/users/evakalis/),
 * I would expect the store locator to check and initialize the maps API if needed,
 * Only thing we can now do is see what we can do at our end as an integration and
   for now propose a solution:
 * By whitelisting their script; [https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/whitelist-script.php](https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/whitelist-script.php)
 * You can fill in ‘store_frontend_map-js’ for ‘my-string’ and add this as an MU-
   plugin. [https://complianz.io/adding-filters-with-mu-plugins-quick-easy/](https://complianz.io/adding-filters-with-mu-plugins-quick-easy/)
 * You can also contact their support forum and refer to this thread, maybe they
   can integrate with us via [https://github.com/Really-Simple-Plugins/complianz-integrations](https://github.com/Really-Simple-Plugins/complianz-integrations)
 * regards Aert
 *  Thread Starter [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13688282)
 * I will do both and reply as soon as possible.
 *  Thread Starter [evakalis](https://wordpress.org/support/users/evakalis/)
 * (@evakalis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13688446)
 * Thank you very much! This works!

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

The topic ‘Google Maps api not working’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [evakalis](https://wordpress.org/support/users/evakalis/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/google-maps-api-not-working-3/#post-13688446)
 * Status: resolved