Page 1 of 2

phoca maps broke on site migration

Posted: 22 Oct 2021, 14:00
by rdgmitch2
I had fully working phoca maps on my site in development when we moved the site to a production server and changed the url all maps stopped working...I'm pretty sure it has to do with the google api key, but not exactly sure what happened or how to fix it, can anyone please help me

Re: phoca maps broke on site migration

Posted: 24 Oct 2021, 23:46
by Jan
Hi, try to see Javascript console, maybe there will be some information regarding this problem :idea:
https://www.phoca.cz/documents/16-jooml ... -conflicts
Jan

Re: phoca maps broke on site migration

Posted: 30 Oct 2021, 10:31
by Maxxx17
I had Phoca maps from the beginning somehow fouled out and didn't work well. Maybe it really has something to do with the google api key. But I think it's easier to find other maps. Than to fix this problem. You can even create your own interactive maps and not worry. You do not need any programming skills to use mapping tools. This can be done by anyone. And even customize the map to suit you. You will be a so-called map creator and it's convenient.

Re: phoca maps broke on site migration

Posted: 10 Nov 2021, 15:48
by rdgmitch2
i do not seem to have any JS conflicts. All the parts of the map component work as expected, except it will not connect to google maps... it did and worked without issue, now it can not connect...if I switch to open street it works perfectly...

Re: phoca maps broke on site migration

Posted: 12 Nov 2021, 13:40
by Jan
Hmm, when you cannot connect to Google Maps, mostly in Javascript console, there is some message directly from Google Maps server (e.g. missing API key, etc. etc.) :idea:

Jan

Re: phoca maps broke on site migration

Posted: 19 Nov 2021, 16:19
by rdgmitch2
Ok...i have now found an error that says that the loading of the map was blocked because it was an http and not https...here is the error
Blocked loading mixed active content “http://maps.googleapis.com/maps/api/js? ... Ub3gqIoyd8

Does this mean google needs to create the api string that starts with https?

Re: phoca maps broke on site migration

Posted: 19 Nov 2021, 16:26
by Benno
Hi,
what is your setting of the 'Enable SSL API Load' parameter in Phoca Maps Options?

Kind regards,
Benno

Re: phoca maps broke on site migration

Posted: 22 Nov 2021, 14:39
by rdgmitch2
it is set to"no" because when I set it to yes...it will show a google map, but remove all my custom markers

Re: phoca maps broke on site migration

Posted: 22 Nov 2021, 14:46
by rdgmitch2
actually it will not allow me to even place a marker in a location

Re: phoca maps broke on site migration

Posted: 22 Nov 2021, 15:21
by rdgmitch2
I have figured it out and resolved the issue. The site was migrated to a new server and a new url, everything changed from the old url to the new except the custom marker urls in the "icon" section of the the component, I saw it and changed them and now all works as described...thank you for your help. This is closed