Google Map Not Using SSL

This topic contains 7 replies, has 2 voices, and was last updated by  Kor 7 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #345687

    Charla
    Buyer
    Post count: 10

    I have 2 issues. (1) The live site that I am working with uses SSL but Google Map is not SSL, when looking at the source code I see http://maps.googleapis.com/maps/api/staticmap and this causes a mixed content error.

    (2) In addition, when using the GeoDirectory on SSL, the places category icons in the backend show as broken because it is putting the part of the old url in img src such as http://www.domain.com/wp-content/uploadhttps://www.domain.com/wp-content. On the front end the images are shown without https and causes a mixed content error. Should the theme Whoop and the Plugin know when the user is using https or not and change accordingly using is_ssl().

    I tried Velvet Blue and Search and Replace but the problem still exists. Could you check on your end and see if you get the same results on the demo because I noticed that it does not use https?

    Thanks for your help in advance.

    #345725

    Kor
    Moderator
    Post count: 16516

    Hi Charla,

    Please provide the login credentials below and we’ll check on it.

    WP Admin
    Login URL :
    Login Username :
    Login Password :

    FTP Access
    FTP Host :
    FTP Username :
    FTP Password :

    #346219

    Charla
    Buyer
    Post count: 10

    Sorry and thanks for the response. It seems that it is not Geo and I narrowed the problem down to multi-site. I kept trying different variations such as a different theme, disabling plugins, etc and figured not to upgrade multi-site network when it asked. When multi-site wants to be upgraded it corrupts or does something that causes the errors mentioned above as well as other issues (users not being able to login, user not being created, bbpress forum tag corruption with the id of 0 and more) in 4.7.1. What ended up happening is that I turned off multi-site, re-imported the database, checked to see if users could login and be created, turned back on SSL and everything works fine, so far.

    #346227

    Charla
    Buyer
    Post count: 10

    Oh and by the way, the map on the places details page still does not include SSL for the image src it shows http://maps.googleapis.com.

    #346235

    Kor
    Moderator
    Post count: 16516

    Hi Charla,

    Glad that you sorted that out. We would need WP temp admin to check on the Google Map issue.

    Thanks!

    #346322

    Charla
    Buyer
    Post count: 10

    Found that the url is coming from the theme in functions/general.php line 413.

    $img_old_url = 'http://maps.googleapis.com/maps/api/staticmap';
    #346338

    Charla
    Buyer
    Post count: 10

    Change the code I believe it was between line 413 and 416. I modified the file and place the updated one in the child theme. Code used is below.

    
    
    if ( is_ssl()) {
    $img_old_url = 'https://maps.googleapis.com/maps/api/staticmap';
    $img_url = esc_url(add_query_arg($img_map_args, $img_old_url));
    				
    } else {
    
    $img_old_url = 'http://maps.googleapis.com/maps/api/staticmap';
    $img_url = esc_url(add_query_arg($img_map_args, $img_old_url));
    
    }
    #346379

    Kor
    Moderator
    Post count: 16516

    Hi Charla,

    Thanks for sharing this. Please let us know if you’ve any other issues with the GD plugin.

    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount