MissingKeyMapError javascript error
-
- Phoca Member
- Posts: 21
- Joined: 08 Jul 2016, 00:05
Re: MissingKeyMapError javascript error
Bonsoir,
Est-ce que vous avez la solution???
Merci !!!!
Est-ce que vous avez la solution???
Merci !!!!
Tags:
-
- Phoca Newbie
- Posts: 2
- Joined: 08 Jul 2016, 11:47
Re: MissingKeyMapError javascript error
Hi,
Here is a solution I've just coded. It's not perfect but it's working for me !
In plugins/content/phocamaps/phocamaps.php line 185.
Replace:
By:
I only use the plugin but I think the component can easily be fixed by forcing in components/com_phocamaps/views/map/tmpl/default.php (or in a substitution in your template) line 95
It's not a perfect solution but it may be useful while waiting for the offical patch in the next (?) version.
Hope this helps.
NNX
Here is a solution I've just coded. It's not perfect but it's working for me !
In plugins/content/phocamaps/phocamaps.php line 185.
Replace:
Code: Select all
$tmpl['params'] = '{other_params:"language='.$mapp->lang.'"}';
Code: Select all
$tmpl['params'] = '{other_params:"key=YOUR_API_KEY&language='.$mapp->lang.'"}';
Code: Select all
$this->t['params']
Code: Select all
echo $map->addAjaxAPI('maps', '3', $this->t['params']);
Hope this helps.
NNX
-
- Phoca Newbie
- Posts: 2
- Joined: 08 Jul 2016, 11:47
Re: MissingKeyMapError javascript error
Sorry I've missed the 2nd setting of $tmpl['params'] in plugins/content/phocamaps/phocamaps.php line 180!!!
to replace by
NNX
Code: Select all
$tmpl['params'] = '';
Code: Select all
$tmpl['params'] = '{other_params:"key=YOUR_API_KEY"}';
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: MissingKeyMapError javascript error
Hi,
please, update to the latest version (3.0.4): https://www.phoca.cz/news/890-phoca-maps-3-0-4-released
It should work OK now (including the API Key), see demo (3.0.4): https://www.phoca.cz/documents/53-phoca-maps ... izing-maps
Please, test it and let me know.
Thank you, Jan
please, update to the latest version (3.0.4): https://www.phoca.cz/news/890-phoca-maps-3-0-4-released
It should work OK now (including the API Key), see demo (3.0.4): https://www.phoca.cz/documents/53-phoca-maps ... izing-maps
Please, test it and let me know.
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 211
- Joined: 03 Nov 2009, 20:31
- Location: Germany
- Contact:
Re: MissingKeyMapError javascript error
Hey Jan,
thanks for the updated component and plugin - it works great! API key error is gone, and the maps are displayed again as used to be.
Thanks for all your work!
Best regards,
Ronny
thanks for the updated component and plugin - it works great! API key error is gone, and the maps are displayed again as used to be.
Thanks for all your work!
Best regards,
Ronny
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
Re: MissingKeyMapError javascript error
Hi Jan,
I upgraded to the latest Version of Plugin and Component of Phoca Maps, but I still got an error message. Of course I also entered the API key following your instructions.
I cleared the cache, but still got the error message. It would be great if you could have a look at www.winckel.org/anfahrt.html
It loads shortly, but then the map is disappearing and the error is thrown.
Thanks for your help in advance.
Best regards
JamFX
I upgraded to the latest Version of Plugin and Component of Phoca Maps, but I still got an error message. Of course I also entered the API key following your instructions.
I cleared the cache, but still got the error message. It would be great if you could have a look at www.winckel.org/anfahrt.html
It loads shortly, but then the map is disappearing and the error is thrown.
Thanks for your help in advance.
Best regards
JamFX
-
- Phoca Newbie
- Posts: 5
- Joined: 13 Jul 2016, 15:00
Re: MissingKeyMapError javascript error
I have the same problem of "jamfx": phocamaps 3.0.4 with API configured:
loads shortly, but then the map is disappearing and the error is thrown.
The only difference from 3.0.3: Now the error message is in Italian.
loads shortly, but then the map is disappearing and the error is thrown.
The only difference from 3.0.3: Now the error message is in Italian.
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
Re: MissingKeyMapError javascript error
As far as I can see, I have a problem activating the API key. I did exactly as described new for about 3-4 times. But nothing works.
The console says Key not activated. But I don't know how to do it.
Maybe Jan can clarify some steps...
Best regards
JamFX
EDIT: I somehow solved the problem on my own. I managed to activate the "Google Maps JavaScript API" and now everything works smooth. Thanks.
The console says Key not activated. But I don't know how to do it.
Maybe Jan can clarify some steps...
Best regards
JamFX
EDIT: I somehow solved the problem on my own. I managed to activate the "Google Maps JavaScript API" and now everything works smooth. Thanks.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: MissingKeyMapError javascript error
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 7
- Joined: 11 Mar 2009, 10:28
- Location: Netherlands
Re: MissingKeyMapError javascript error
This worked for me too.jamfx wrote:...snip...
EDIT: I somehow solved the problem on my own. I managed to activate the "Google Maps JavaScript API" and now everything works smooth. Thanks.