Title: Google Maps broken
Last modified: September 1, 2016

---

# Google Maps broken

 *  Resolved [vinylrevolution](https://wordpress.org/support/users/vinylrevolution/)
 * (@vinylrevolution)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-maps-broken/)
 * Hi,
 * Thanks for making such an amazing plugin! Best optimisation plugin I’ve found.
   Really appreciate your time. I have a quick question regarding a problem with
   my Google Maps on my contact page here: [https://www.vinylrevolution.co.uk/vinyl/about/contact/](https://www.vinylrevolution.co.uk/vinyl/about/contact/)
 * When I look at the console it is retrieving an error about the referrer not being
   allowed. I’m assuming because it needs to be coming from a verified site and 
   not through the optimised js? Here is the full error below (apologies for the
   formatting I cannot provide a screenshot):
 * Google Maps
    js?sensor=false&key=AIzaSyCnQHEUD4Yvg4m1ul3PWUwsjctR1Cl2NFc:32 Google
   Maps API error: RefererNotAllowedMapError [https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error](https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error)
   Your site URL to be authorized: [https://www.vinylrevolution.co.uk/vinyl/about/contact/_.ab](https://www.vinylrevolution.co.uk/vinyl/about/contact/_.ab)
   @ js?sensor=false&key=AIzaSyCnQHEUD4Yvg4m1ul3PWUwsjctR1Cl2NFc:32
 * Google Maps API warning: SensorNotRequired util.js:210 [https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required](https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required)
 * Uncaught
    js?sensor=false&key=AIzaSyCnQHEUD4Yvg4m1ul3PWUwsjctR1Cl2NFc:95 Uncaught
   TypeError: Cannot read property ‘addEventListener’ of undefined
 * Any ideas why this might be happening? Thanks for any info!
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-maps-broken/#post-7605360)
 * I actually see the same errors with AO disabled (can be done on a per request
   basis by adding ?ao_noptimize=1 to the URL) vinylrevolution.
 * Based on the info on [https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error](https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error)
   you’ll need to add vinylrevolution.com to the list of allowed referers of the
   API-key you’re using?
 * frank
 *  Thread Starter [vinylrevolution](https://wordpress.org/support/users/vinylrevolution/)
 * (@vinylrevolution)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-maps-broken/#post-7605374)
 * Thank you for such amazingly fast support! I will look into this and see if I
   can add the domain to the list.
 * Really appreciate it!

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

The topic ‘Google Maps broken’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * ["js error"](https://wordpress.org/support/topic-tag/js-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [vinylrevolution](https://wordpress.org/support/users/vinylrevolution/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/google-maps-broken/#post-7605374)
 * Status: resolved