PDA

View Full Version : Geolocalization map



Mauro Sanua
January 11, 2018, 07:59 AM
Hello everyone,
I have disappeared the map of geolocation without having made any changes.
The API keys are correctly inserted.
Can someone help me?
Here's what I see:
http://www.goweb.it/map_error.png

Rudi
January 11, 2018, 09:24 AM
Hello,

it's better to create a ticket so we can check what causes the problem

probably there are some javascript errors on the page

Viktor
January 11, 2018, 10:08 AM
Hello Mauro,

Maybe 2 problems with it:
1. Incorrect google map API key
2. Exist some js error.

You can create the new ticket with the problem or send ftp access to my PM and I will check it.

Mauro Sanua
January 11, 2018, 03:13 PM
Aye
It's a JS error:

js?libraries=places&language=en&key=AIzaSyARDEsIKLLb2Gh2O28QbBnWA3Vss1Qy3Fg:98 You have included the Google Maps API multiple times on this page. This may cause unexpected errors.
uh @ js?libraries=places&language=en&key=AIzaSyARDEsIKLLb2Gh2O28QbBnWA3Vss1Qy3Fg:98

Viktor
January 16, 2018, 01:36 PM
Hello Mauro,

Our developers are fixing it. I will let you know when it will be done.

John
January 30, 2018, 01:27 PM
Hi Mauro,
Sorry for the late reply but this task (bug you reported) was fixed just now, here is the fix:

1. Open file "templates/YOUR/js/util.js" and find the following code line (line # ~170)

this.checkLoaded();
add this code above:

this.fixProtocol();

2. In the same file find this code:


// Call callback
this.call();
}
and add this code below:


this.fixProtocol = function() {
if (!location.protocol) {
return;
}

for (var i in this.urls) {
if (0 === this.urls[i].indexOf('//')) {
this.urls[i] = location.protocol + this.urls[i];
}
}
}


3. Save changes and press CTRL+R on "Add a Profile" page to clear browser cache.

This fix will be included in Flynax 4.6.2 version update.

John