The Google map is totally blank if i turned on the SSL (https) protocolls

mese859's picture
mese859
Mon, 03/21/2016 - 08:55
#1
The Google map is totally blank if i turned on the SSL (https) protocolls

Hy,

If I turned on the SSL protocols and using https:// in my domain wich use MAX theme the Google map in the contact place is missing. The Firefox/Chrome blocked the non-secured scripts. May you tell me, how can I fix it? I think the error is in the module. When I checked the developer console I found this error message:

Two links with http:

Where can modifying the links?

cindy's picture
cindy
Mon, 03/21/2016 - 23:57

Hi,

1 - Link http://maps.googleapis.com/maps/api/js?sensor=false
=> Please open file Page.Preprocess.Inc in folder sites\all\themes\md_max\preprocess\

Line 61 :

drupal_add_js('http://maps.googleapis.com/maps/api/js?sensor=false', 'external');

2 - Link http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800,800italic| ....

=> Please open file Html.Preprocess.Inc in folder file sites\all\themes\md_max\preprocess\

Line:

drupal_add_css('http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800,800italic|Noticia+Text|Syncopate:400,700&subset=latin&v=1394211350', 'external');

phuonght's picture
phuonght
Tue, 03/22/2016 - 23:12

Hi,

Please replace link

http://maps.googleapis.com/maps/api/js?sensor=false 

with

https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap

You can find the same link at comment #2 of Cindy (file Page.Preprocess.Inc in folder sites\all\themes\md_max\preprocess\, Line 61) then replace YOUR_API_KEY with your own key.

david.szkiba's picture
david.szkiba
Sat, 06/11/2016 - 05:43

Hi,

I have the same problem. Wouldn't it make sense to provide an update to the theme, so that  jquery and google maps are loaded via https? Because if there is an update to the theme (that doesn't replace that links), I would have to replace the same links again. Furthermore, I don't think there would be a downside for people who don't use https on their site.

Despite of that, I really like that theme! Keep up the good work!

Best,

David

phuonght's picture
phuonght
Sun, 06/12/2016 - 22:36

Hi David,

Thank you for your concern about MD Max. We will consider an updated version of this theme in the future. If you have same problem with map, please try above solutions. 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.