Google Map Not Using SSL
This topic contains 7 replies, has 2 voices, and was last updated by Kor 9 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: broken images, category images, Google Map SSL, https, mixed content, secure server, ssl
-
AuthorPosts
-
January 19, 2017 at 2:04 pm #345687
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.
January 19, 2017 at 3:53 pm #345725Hi 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 :January 20, 2017 at 1:44 pm #346219Sorry 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.
January 20, 2017 at 1:57 pm #346227Oh 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.
January 20, 2017 at 2:46 pm #346235Hi Charla,
Glad that you sorted that out. We would need WP temp admin to check on the Google Map issue.
Thanks!
January 20, 2017 at 3:16 pm #346322Found that the url is coming from the theme in functions/general.php line 413.
$img_old_url = 'http://maps.googleapis.com/maps/api/staticmap';January 20, 2017 at 3:25 pm #346338Change 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)); }January 20, 2017 at 4:59 pm #346379Hi Charla,
Thanks for sharing this. Please let us know if you’ve any other issues with the GD plugin.
Thanks!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket