• Resolved derlord

    (@derlord)


    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.
    • This topic was modified 8 years, 8 months ago by derlord.
Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    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. 😉

    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

    (@derlord)

    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

    The map in permanent loading state.

    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

    (@derlord)

    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.
    • This reply was modified 8 years, 8 months ago by derlord.
    • This reply was modified 8 years, 8 months ago by derlord.
    Thread Starter derlord

    (@derlord)

    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.