Announcement

#1 2013-06-02 21:08:25

photo_friend
Member
Berlin
1970-01-01
202

RV Maps&Earth - doesn't work with https connection

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

 

#2 2013-06-03 00:03:33

flop25
Piwigo Team
2006-07-06
7037

Re: RV Maps&Earth - doesn't work with https connection

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2013-06-05 18:38:27

rvelices
Former Piwigo Team
2005-12-29
1960

Re: RV Maps&Earth - doesn't work with https connection

Sory, but without a link, I cannot really test and correct as I don't have https ...

Offline

 

#4 2013-06-05 18:56:06

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: RV Maps&Earth - doesn't work with https connection

(soon Piwigo Association will buy an SSL certificate for Piwigo.org, then we can test ;-)

Offline

 

#5 2013-06-09 01:23:48

photo_friend
Member
Berlin
1970-01-01
202

Re: RV Maps&Earth - doesn't work with https connection

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

 

#6 2013-06-09 10:28:20

rvelices
Former Piwigo Team
2005-12-29
1960

Re: RV Maps&Earth - doesn't work with https connection

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

 

#7 2013-06-12 12:02:01

teekay
Member
2013-06-12
427

Re: RV Maps&Earth - doesn't work with https connection

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

 

#8 2013-06-16 12:49:28

photo_friend
Member
Berlin
1970-01-01
202

Re: RV Maps&Earth - doesn't work with https connection

Hello teekay,

thanks so much for the patch
Just one question: How can I install the patch?

Thanks a lot
Hagen

Offline

 

#9 2013-06-16 14:56:04

teekay
Member
2013-06-12
427

Re: RV Maps&Earth - doesn't work with https connection

photo_friend,

if you're running on a linux box:

Code:

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

 

#10 2013-06-16 15:13:47

photo_friend
Member
Berlin
1970-01-01
202

Re: RV Maps&Earth - doesn't work with https connection

Thanks - it works perfect!!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact