Title: Google Map HTTPS Issue
Last modified: September 27, 2017

---

# Google Map HTTPS Issue

 *  Resolved [derlord](https://wordpress.org/support/users/derlord/)
 * (@derlord)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-map-https-issue/)
 * In your code in this file:
    `includes/js/events-manager.js`
 * i need to use hard link:
 *     ```
       script.id = "google-maps";
                                       script.src = 'https://maps.google.com/maps/api/js?v=3.24&libraries=places&callback=em_maps&key=';
       ```
   
 * Because in default case the map doesn’t show
 *     ```
       			var proto = (EM.is_ssl) ? 'https:' : 'http:';
       			if( typeof EM.google_maps_api !== 'undefined' ){
       				script.src = proto + '//maps.google.com/maps/api/js?v=3&libraries=places&callback=em_maps&key='+EM.google_maps_api;
       			}else{
       				script.src = proto + '//maps.google.com/maps/api/js?v=3&libraries=places&callback=em_maps';
       			}
       ```
   
 * I need to edit this file every time after update plugin.
    Please fix it ASAP 
   or add an option in settings to set protocol manualy.
    -  This topic was modified 8 years, 8 months ago by [derlord](https://wordpress.org/support/users/derlord/).
    -  This topic was modified 8 years, 8 months ago by [derlord](https://wordpress.org/support/users/derlord/).

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

 *  [jordanthedesigner](https://wordpress.org/support/users/jordanthedesigner/)
 * (@jordanthedesigner)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9536843)
 * Hello,
 * Apologies for the frustration. We have not seen this issue reported often, but
   I will be sure to report it to the devs so they will keep this in mind.
 *  [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9536967)
 * Strange… Also because you seem to be missing the API key in your edited code…
   On what URL are you using this? I can take a look and see what causes the problem.
   😀
 * Another tip: if you take out the version ‘v=3.42&’ the Google script will deliver
   a cached version, speeding up your page load. 😉
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9538953)
 * The code you mentioned is designed to work on both _http_ and _https_ sites. 
   If you need to edit it, then there’s likely to be something else wrong.
 * If you post a link to your site we may be able to help.
 *  Thread Starter [derlord](https://wordpress.org/support/users/derlord/)
 * (@derlord)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9541016)
 * > The code you mentioned is designed to work on both http and https sites.
 * Yes, i know and understand it.
    I jus want to say, that this code works wrong.
   I have just update the plugin and as i say it brokes again. Look at the link 
   below:
 * [https://twilightradio.ru/events/vesssna-ignight-i-vladislava](https://twilightradio.ru/events/vesssna-ignight-i-vladislava)
 * The map in permanent loading state.
 *  [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9541321)
 * You are using the Better WordPress Minify plugin. Change the settings to not 
   minty javascript. That will also resolve another error on your page and the map
   will work.
 *  Thread Starter [derlord](https://wordpress.org/support/users/derlord/)
 * (@derlord)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9545169)
 * I totally disable this plugin and clear its cache, but the map still doesn’t 
   work
 * BTW:
 * `js:54 Mixed Content: The page at 'https://twilightradio.ru/events/vesssna-ignight-
   i-vladislava' was loaded over HTTPS, but requested an insecure script 'http://
   maps.googleapis.com/maps/api/js/QuotaService.RecordEvent?1shttps%3A%2F%2Ftwilightradio.
   ru%2Fevents%2Fvesssna-ignight-i-vladislava&5e0&6u1&7s7kxqyn&callback=_xdc_._yu1jni&
   token=45715'. This content should also be served over HTTPS.`
 * It still seems, that the problem in JS function that detects protocol, as i suggest
   in my 1st post.
    -  This reply was modified 8 years, 8 months ago by [derlord](https://wordpress.org/support/users/derlord/).
    -  This reply was modified 8 years, 8 months ago by [derlord](https://wordpress.org/support/users/derlord/).
    -  This reply was modified 8 years, 8 months ago by [derlord](https://wordpress.org/support/users/derlord/).
 *  Thread Starter [derlord](https://wordpress.org/support/users/derlord/)
 * (@derlord)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9679414)
 * So, there aro no solution for now, i suppose?

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

The topic ‘Google Map HTTPS Issue’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [derlord](https://wordpress.org/support/users/derlord/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/google-map-https-issue/#post-9679414)
 * Status: resolved