Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #751401

    I just updated a site from http:// to https:// adding a SSL certificate.

    I have used plugin ‘better find and replace’ plugin and all assets are loading over https://

    the only remain problem is this browser javascript console error

    Mixed Content: The page at 'https://www.domainname.com/' was loaded over HTTPS, but requested an insecure script 'http://maps.google.com/maps/api/js?sensor=false'. This request has been blocked; the content must be served over HTTPS.

    I am using a enfold-child theme

    However I found in the parent theme…

    THEMES > ENFOLD > functions-enfold.php
    LINE 76 $url = "http://maps.google.com/maps/api/js?v=3.27";

    The url is hard code to http://

    Changing this to https:// has no-effect on the browser error.

    Google maps api is available over https
    https://developers.google.com/maps/faq#ssl

    hoping you can shed some light on this issue

    #752731

    FYI

    The site is not using a MAP at all, yet Enfold is still loading the Google Map API code regardless.

    Shouldn’t loading the Google Map javascript be conditional based on a map being used.

    #753515

    Hi,

    Thank you for using Enfold.

    The script should be loaded only if a google map exist. It’s probably added by a plugin or it is from a custom modification that you missed. Please post the login details here so that we can check the dashboard.

    UPDATE: The script is actually no longer part of the theme anymore. Do you have the latest version (4.0.2) of the theme?

    https://developers.google.com/maps/documentation/javascript/tutorial#google.maps.Map

    Best regards,
    Ismael

    #754024

    credentials below

    • This reply was modified 7 years, 9 months ago by HuxburyQuinn.
    #754123

    Hey!

    Thank you for the update. I checked the site today and the mixed error is no longer there. How did you fix it? I also noticed multiple child theme templates in the Appearance > Themes panel. What are they doing there?

    Regards,
    Ismael

    #755439

    Hi Ismael,

    Yes the culprit was a plugin “Indeed PopUps”

    I have replaced the need for this plugin by using this code

    https://kriesi.at/support/topic/code-snippet-inline-post-content-popup-magnific-popup-shortcode/

    you can consider this closed.

    thanks for the great support.

    #756120

    Hey!

    Great! Glad that you the plugin. :)

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘requested an insecure script 'http://maps.google.com/maps/api/js?sensor=false'’ is closed to new replies.