Geolocation empty on https site

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geolocation empty on https site

Post by Jan »

Hi, when you update to latest version 4.3.7, do you get the same problems?

https://www.phoca.cz/news/961-phoca-gal ... 7-released

Jan
If you find Phoca extensions useful, please support the project
Olg
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Dec 2015, 16:58

Re: Geolocation empty on https site

Post by Olg »

Hi, Jan.
I install 4.3.8. The problem is there...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geolocation empty on https site

Post by Jan »

Do you get the problem with current images or do you get it when you add new image into the system too?

Jan
If you find Phoca extensions useful, please support the project
Olg
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Dec 2015, 16:58

Re: Geolocation empty on https site

Post by Olg »

I get this problem in both cases.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geolocation empty on https site

Post by Jan »

I still don't understand what you mean with:
"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."
Because reading the longitude and latitude does not have anything to do with url to google api :idea:

Jan
If you find Phoca extensions useful, please support the project
Olg
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Dec 2015, 16:58

Re: Geolocation empty on https site

Post by Olg »

I mean that site work on https and 2 links with http inside component caused warnings (not errors). I changed links "http://..." inside Gallery's files to "//..." ones and warnings disappear.
P.S. In Gallery 4.3.9 version the problem with empty geolocation remained.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geolocation empty on https site

Post by Jan »

Hi, there were no changes regarding adding geolocation from exif. There seems to be some problem when reading the exif data from image on your server. I am testing now on 3 different servers without any problem (this feature is here for long time, and it just does not need any link - it just opens the exif data and extracts the coordinates :idea: )

Jan
If you find Phoca extensions useful, please support the project
Olg
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Dec 2015, 16:58

Re: Geolocation empty on https site

Post by Olg »

Hi, it worked earlier.

PHP Information on server:

exif
EXIF Support enabled
EXIF Version 1.4 $Id: 8bdc0c8f27c2c9dd1f7551f1f9fe3ab57a06a4b1 $
Supported EXIF Version 0220
Supported filetypes JPEG, TIFF
Directive Local Value Master Value
exif.decode_jis_intel JIS JIS
exif.decode_jis_motorola JIS JIS
exif.decode_unicode_intel UCS-2LE UCS-2LE
exif.decode_unicode_motorola UCS-2BE UCS-2BE
exif.encode_jis no value no value
exif.encode_unicode ISO-8859-15 ISO-8859-15
fileinfo
fileinfo support enabled
version 1.0.5
libmagic 522
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geolocation empty on https site

Post by Jan »

Hi, the only one chance to get information about the problem is debug the exif file, to see if you get some data from image and its exif :-(

administrator\components\com_phocagallery\libraries\phocagallery\geo\geo.php

You can e.g. remove @ for tests:

FROM:

Code: Select all

@exif_read_data($fileOriginal, 0, true);
TO:

Code: Select all

exif_read_data($fileOriginal, 0, true);
- to test if the function can read the data, etc :idea:

Jan
If you find Phoca extensions useful, please support the project
Olg
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Dec 2015, 16:58

Re: Geolocation empty on https site

Post by Olg »

I made this, but result the same... J! 3.8.4, Phoca Gallery 4.3.10.
Oleg
Post Reply