By Tony Boutemeur on Friday, 17 February 2017
Posted in General Issues
Likes 0
Views 152
Votes 0
Hello Stackideas team,

My website works with Force HTTPS on entire site.

It seems Easysocial doesn't want and there is some errors like this: [Blocked loading mixed active content “http://maps.googleapis.com/maps/api/js?language=en-GB”]

When I take a look in page source, these errors provide from easysocial:

for example below ( and please see the screenshot attached):

<div class="es-locations" data-location-base>
<div class="es-location-help">
<a href="http://maps.google.com/?q=125 W 26th St, New York, NY 10001, USA" target="_blank">View in Google Maps</a>
</div>
<div class="es-location-map" data-location-map data-latitude="40.7453825" data-longitude="-73.9922357">

There is a way for security reasons, to fix it ?
Hello Tony,

Can you try this, edit the file /media/com_easysocial/apps/fields/user/address/themes/default/display_content.php and replace the codes below,


<a href="http://maps.google.com/?q=<?php echo $value->toString(); ?>" target="_blank"><?php echo JText::_('FIELDS_USER_ADDRESS_VIEW_IN_GOOGLE_MAPS'); ?></a>


With,


<a href="https://maps.google.com/?q=<?php echo $value->toString(); ?>" target="_blank"><?php echo JText::_('FIELDS_USER_ADDRESS_VIEW_IN_GOOGLE_MAPS'); ?></a>
·
Friday, 17 February 2017 18:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark ,

I have done but as you can see on my screenshot attached, there is always the bug.

I think, there are other parts too for replacing the code.
·
Friday, 17 February 2017 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
I made a test with other templates also protostar and error was still but your modification have erased one on two <script src="http://maps.googleapis.com/maps/api/js?language=en-GB"; type="text/javascript"></script>

No matter page from my website, I have got the same error message and I cannot see where the file is.

When I took a look to the page source code, I have also found this : <script src="http://maps.googleapis.com/maps/api/js?language=en-GB"; type="text/javascript"></script>" but it seems provide from somewhere but I cannot to see where.
·
Friday, 17 February 2017 19:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

It's ok now. All sounds good, I disabled some plugins one by one to find out where the script was loaded and I found out. Now it's ok.

Thank you so much for your help.

Best regards,

Tony
·
Friday, 17 February 2017 20:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 17 February 2017 20:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post