Page 1 of 3

Geolocation empty on https site

Posted: 04 Jan 2016, 14:00
by Brujo
when I try to set Geolocation Coordinates in Backend for Categories I get an blank popup, also when I enabled show Geolocation on category it was empty in frontend.

My site is running under https only therefore I changed on the 4 locations in the scripts from http: -> https: and it works now. Maybe I have overseen if there is a Setting to enable https in general, or maybe it is perhaps missing.

Code: Select all

/administrator/components/com_phocagallery/views/phocagalleryg/tmpl/default.php:echo '<script src="https://www.google.com/jsapi" type="text/javascript"></script>';

/components/com_phocagallery/views/category/tmpl/default_geotagging.php:echo '<script src="https://www.google.com/jsapi" type="text/javascript"></script>';

/components/com_phocagallery/views/map/tmpl/default.php:        echo '<script src="https://www.google.com/jsapi" type="text/javascript"></script>';

/components/com_phocagallery/views/categories/tmpl/default_map.php:     echo '<script src="https://www.google.com/jsapi" type="text/javascript"></script>';
Phoca Gallery Version 4.2.2 on Joomla 3.4.8

Re: Geolocation empty on https site

Posted: 07 Jan 2016, 13:48
by Jan
Hi, for now there is no such option (I have added some to Phoca Maps), so I will add it to the next version of Phoca Gallery too.

Thank you for the info.

Jan

Re: Geolocation empty on https site

Posted: 07 Jan 2016, 20:45
by Brujo
glad to give a litle pice back for the outstandig Job you do

thanks and keep up the good Job

Re: Geolocation empty on https site

Posted: 13 Dec 2017, 18:37
by Olg
Hi, after site migration from http to https Gallery don't set Geolocation Coordinates to images when create thumbnails (in original file's exif-data is GPS information). I changed in Gallery's files "http://www.google.com/jsapi" to "//www.google.com/jsapi" but Geolocation Coordinates don't set anyway. Phoca Gallery Version 4.3.6 on Joomla 3.8.3. Is any solution for this problem?

Re: Geolocation empty on https site

Posted: 16 Dec 2017, 19:27
by Jan
Hi, is the info about geolocation stored by the images (in administration when you see each image, there are fields for geo location)?
Jan

Re: Geolocation empty on https site

Posted: 16 Dec 2017, 20:35
by Olg
Hi, Jan.
For images, which added when site worked with http -- fields for geolocation are with data. For images, which added when site began work with https -- fields for geolocation are blank.

Re: Geolocation empty on https site

Posted: 17 Dec 2017, 12:10
by Jan
To understand it better:

There are two ways how to get geolocation into the image item:

a) manual - in edit mode when you display the map in popup and click on location, such will be stored.
b) exif - automatically - when adding images to system, they automatically get geolocation by exif


So which way is the problem for you?

When b), there is no connection to some url or needed to differentiate between http or https as the location is extracted from image itself - from its exif data :idea:

Jan

Re: Geolocation empty on https site

Posted: 17 Dec 2017, 15:28
by Olg
Hi, Jan.
The way a) is not a problem: a can add geolocation manually. But this way isn't convenient when adding more than one photo.
The way b) now is aproblem. Usually there are geolocation data in my photo's exif. When my site worked with http -- fields for geolocation filled from exif automatically when I added new photos. Now site work with https -- and geolocation don't fill from exif automatically when I add new photos.
Best regards
Oleg

Re: Geolocation empty on https site

Posted: 18 Dec 2017, 00:48
by Jan
Hi, the problem is, reading the EXIF from the file should not be changed, when trying to get the exif info from the original image, absolute path to the image stored on server is used (so no http or https) :idea:

Jan

Re: Geolocation empty on https site

Posted: 18 Dec 2017, 07:19
by Olg
Hi, but problem occurs...