map in article showing gray box

Phoca Maps - displaying maps in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: map in article showing gray box

Post by Jan »

Hi, which is the version of the plugin and which of the component? When you create a menu link to component, does the map display?

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

Tags:
enoch
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 12 Jan 2018, 07:39

Re: map in article showing gray box

Post by enoch »

Thank you - I discovered that the plugin was an older version than the phoca maps component installed.
Have now got it fixed by updating the plugin!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: map in article showing gray box

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
enoch
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 12 Jan 2018, 07:39

Re: map in article showing gray box

Post by enoch »

Maybe I spoke too quickly - it looks like it is still not working after updating the plugin and the component.
The developer console in Chrome gives the following error - although i have enabled the stepforward.it domain for the api key in google:

Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/docu ... -map-error
Your site URL to be authorized: https://stepforward.it/index.php/where- ... sultant-it
_.Pb @ js?callback=initMapsComcontentarticle222&key=AIzaSyDkKI0TKe13SpVGQvuB-ot77fVQIKnRkIM:41
christine
Phoca Hero
Phoca Hero
Posts: 2737
Joined: 28 Nov 2010, 17:20

Re: map in article showing gray box

Post by christine »

Hi enoch,

confirm above response (JS Console). Your API key could not be loaded (not accepted). Try following under Referer field:

example.org/* > after the URL and an * a "space".

Kind regards
Christine
Post Reply