If I use https connections, the RV Maps&Earth plugin doesn't show any map anymore. Can you confirm this error? Anything else of piwigo works perfect with https connections.
What can I do to avoid this error?
Thanks so much und best greetings
Hagen
Offline
Hello
that why I don't like that plugin... the best would be to use an .htaccess/apache rules to use htpps when needed or exclude https for some pages
Offline
Sory, but without a link, I cannot really test and correct as I don't have https ...
Offline
(soon Piwigo Association will buy an SSL certificate for Piwigo.org, then we can test ;-)
Offline
Sorry - the server is privat, so I can not send you link.
By the way, in don't use the "Force HTTPS" plugin - I establish the https connection manual.
Thanks for your support,
Hagen
Last edited by photo_friend (2013-06-09 10:59:44)
Offline
photo_friend wrote:
Sorry - yy server is privat, so I can not send you link
OK. we'll let you know if we manage to get a proper testing environment ...
Offline
The problem is, that the plugin retrieves the ajax/map data from Google via HTTP, not HTTPS.
Fortunately Google provides SSL for both https://maps.googleapis.com and https://ajax.googleapis.com
So the solution is to use the https:// URLs by default in the templates (or // without protocol).
Here is a patch for rv_gmaps: https://fotos.kuther.net/rv_gmaps-https.patch
And here is the _working_ map: https://fotos.kuther.net/map.php?/categories
Make sure to delete the browser's cache after applying the patch.
(It's way more complicated for the other nice plugin piwigo-openstreetmap, one needs to configure a ssl reverse proxy in the webserver, as openstreetmap does not provide the tiles via SSL :))
Offline
Hello teekay,
thanks so much for the patch
Just one question: How can I install the patch?
Thanks a lot
Hagen
Offline
photo_friend,
if you're running on a linux box:
cd plugins/rv_gmaps patch -p0 < /path/to/rv_gmaps-https.patch
Alernatively edit the two files template/earth_kml.tpl and template/map.tpl by hand, simply replace all occurances of http://maps.googleapis.com and http://ajax.googleapis.com with https://...
(There are 4 URLs to replace then, two in each file)
@rvelices: it would be great if you could change that in the next release, too. When running on HTTP, it doesn't hurt if the external scripts are retrieved via HTTPS, so this would be a valid fix. Thanks!
Last edited by teekay (2013-06-16 14:59:19)
Offline
Thanks - it works perfect!!
Offline