Maps not shown when calling page with https

Phoca Maps - displaying maps in Joomla! CMS
PJrN
Phoca Member
Phoca Member
Posts: 21
Joined: 17 Jun 2016, 20:38

Re: Maps not shown when calling page with https

Post by PJrN »

Any help?
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Maps not shown when calling page with https

Post by christine »

@ PJrN,

did you also check this: https://www.phoca.cz/documents/53-phoca- ... ps-api-key
I couldn't see an API Code? After creating:
Create the API and store it. Copy it and paste it to Phoca Maps Options. Store the options. Now the map should be displayed in administration and in frontend.
Kind regards, Christine
PJrN
Phoca Member
Phoca Member
Posts: 21
Joined: 17 Jun 2016, 20:38

Re: Maps not shown when calling page with https

Post by PJrN »

PJrN
Phoca Member
Phoca Member
Posts: 21
Joined: 17 Jun 2016, 20:38

Re: Maps not shown when calling page with https

Post by PJrN »

Can I add the api key on the code? I need help I have like 300 pages without map.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Maps not shown when calling page with https

Post by Jan »

Hi, on your site I get this warning in javascript console:

Google Maps API warning: NoApiKeys https://developers.google.com/maps/docu ... o-api-keys
util.js
Google Maps API warning: SensorNotRequired https://developers.google.com/maps/docu ... t-required

So the site does not have any API Key?

Did you follow exactly this guide:
https://www.phoca.cz/documents/53-phoca- ... ps-api-key

Jan
If you find Phoca extensions useful, please support the project
PJrN
Phoca Member
Phoca Member
Posts: 21
Joined: 17 Jun 2016, 20:38

Re: Maps not shown when calling page with https

Post by PJrN »

I do with different gmail accounts. Can you leave me a key only some minutes to see if it is problem of the key or the plugin?
PJrN
Phoca Member
Phoca Member
Posts: 21
Joined: 17 Jun 2016, 20:38

Re: Maps not shown when calling page with https

Post by PJrN »

I continue with the problem. I have like 300 pages with map. How can I fix? It's not api key error, it is like the component don't take the api.
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Maps not shown when calling page with https

Post by christine »

Hi,

there are still warnings in javascript console as Jan already wrote. See screenshot: http://imgur.com/kBojh3b

When checking the source code of 1 URL (previous post) I'm missing something like this:
....
//]]></script>
<script async defer src="https://maps.googleapis.com/maps/api/js ... y53&[b]key[/b]=here is the key" type="text/javascript"></script>
Check also again correct referrers addr etc. https://www.phoca.cz/documents/53-phoca- ... ps-api-key

Kind regards, Christine
PJrN
Phoca Member
Phoca Member
Posts: 21
Joined: 17 Jun 2016, 20:38

Re: Maps not shown when calling page with https

Post by PJrN »

I say again, it's like the component don't write the api. I put in phoca maps options but the component doesn't load the api.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Maps not shown when calling page with https

Post by Jan »

Hi, the problem is, Google server does not get API.

What you exactly mean with "component don't write the API"? If you store the API key in component administration, it is not stored? (when saving, then the API key field is empty?)

Jan
If you find Phoca extensions useful, please support the project
Post Reply