Title: Google Maps Problem
Last modified: June 24, 2018

---

# Google Maps Problem

 *  Resolved [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/)
 * Hi Frank,
 * I love your plugin and it works amazing, I can’t believe the difference it makes!
 * But I’m having a problem with my google maps when the plugin is activated, they
   don’t show up. I have checked the forum and can’t seem to resolve it.
 * – I have added js/jquery/jquery.js to the exclusion but the problem persists.
 * I know you suggest having an image of the map instead but it’s a property website
   and I need the maps to work.
 * I have checked the console and I’m getting an error:
    Jb message: “initMap is
   not a function” name: “InvalidValueError” Stack: “Error↵ at new Jb ([https://maps.googleapis.com/maps/api/js?***********](https://maps.googleapis.com/maps/api/js?***********)
 * Error
    constructor:ƒ (a) Db:{constructor: ƒ, name: “Error”, message: “”, toString:
   ƒ} vf:ƒ (a,c,f) arguments:null caller:null length:3 name:””
 * I pretty new to wordpress so I don’t know where to go from here,
    Any help would
   be greatly appreciated. Thanks, Paul.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-maps-problem-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10430182)
 * try adding `property_location, themes/realexpert/js/property-map.js` to the comma-
   separated JS optimization exclusion list to start with maybe? 🙂
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10430196)
 * You’re a genius !!!
 * That worked great.
 * Thanks you so much for the quick response and sorting out my problem.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10430227)
 * you’re welcome Paul, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439702)
 * Hi again,
 * I have another little issue, the code you gave me worked great and sorted out
   the problem with the map not showing on the property page. I just noticed today
   that the map isn’t showing on the “contact us” page. Is there another code I 
   need to add to fix this ?
 * I have this code added already:
 * seal.js, js/jquery/jquery.js, property_location, themes/realexpert/js/property-
   map.js
 * Thanks again,
    Paul
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439873)
 * the map on your contact page uses a different JS-file, which you’ll have to add
   to that comma separated JS optimization exclusion list;
 * `themes/realexpert/js/contact-map.js`
 * hope this helps,
    frank
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439894)
 * Hi Frank,
 * I tried that and it doesn’t seem to work.
 * Thanks again
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439913)
 * Can you copy/ paste what you have in the JS optimization exclusions now Paul?
   Because when looking at the HTML source of the contact-page that JS seems not
   excluded.
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439920)
 * wp-content/cache/, wp-content/uploads/, admin-bar.min.css, dashicons.min.css,
   themes/realexpert/js/contact-map.js
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439930)
 * sorry it’s this one frank
 * seal.js, js/jquery/jquery.js, property_location, themes/realexpert/js/property-
   map.js, themes/realexpert/js/contact-map.js
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439942)
 * that last one should work. make sure to flush your page cache(s) to allow this
   to propagate 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439968)
 * ah, I forgot about `contact_location`, that also has to be added to that comma-
   separated field 🙂
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439998)
 * Hi again,
 * nope, still not working. I flushed cache, deleted internet history and even restarted
   my computer just in case.
 * Is it difficult just to insert an image of the map into the contact page like
   you suggested to someone else ?
 * Thanks again
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10440009)
 * just adding contact_location now
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10440021)
 * Hi Frank
 * contact_location did it,
    thanks again Frank, you’re great !

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

The topic ‘Google Maps Problem’ 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

 * [autoptomize](https://wordpress.org/support/topic-tag/autoptomize/)

 * 14 replies
 * 2 participants
 * Last reply from: [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10440021)
 * Status: resolved