javascript error
-
hi, my map is coming up with a javascript error, and ideas how to fix this?
The map is at the bottom of this page http://xtremecsc.ie/cashel/Thanks in advance, hope you can help
-
Same problem … Really annoying I do not know what to do…
@macpheek, the error there says that you need a Maps API key. I’m not sure why Google requires that for some people and not for other. Long term, I need to add a way for the plugin to handle that, but it doesn’t right now.
One workaround is to manually add a key. I know that’s not a good solution, but it’s all I’ve got right now.
There’s also another error in the browser console:
jquery.js?ver=1.11.3:2 Uncaught Error: Syntax error, unrecognized expression: [data-Oxygen, sans-serif-slider]. It looks like it’s coming from theeasy-foundation-shortcodesplugin.@dcecharlotte, can you post a link to the page on your site that has the map? There are lots of potential causes, so I’ll need to look at your specific site to know for sure.
@ian the map is here : http://qisignature.ca/
I don’t see the map there. Is it on the homepage you linked to, or another page?
Oh sorry, just 10minuts it’ll come back ..
It’s ok, the map is just at the end of the scroll on this page : http://qisignature.ca/
It looks like the same API key error.
Your page also has an unrelated JavaScript error, though, so I wonder if maybe that’s part of the reason why Maps breaks? Can you try fixing that, and check if the map works?
theme.min.js?ver=4.5.3:10 Uncaught TypeError: a.cookie is not a functionYou’ll need to contact the theme’s author for help with that.
Alternatively, you could switch to one of the default themes temporarily, test it, then switch back.
Hello! I’ve tried this workaround but it still doesn’t work. I keep getting the javascript error ven though I created my API key and edited the core.php file. I am emulating my actual URL in a local environment using MAMP Pro. Would this be the reason it’s not working? Will it be fine once it’s on the live server?
Thank you
same for me — not working; i tweaked with these codes:
$geocodeResponse = wp_remote_get( ‘https://maps.googleapis.com/maps/api/geocode/json?latlng=’. $latitude .’,’. $longitude .’&key=API_KEY’ );
$geocodeResponse = wp_remote_get( ‘https://maps.googleapis.com/maps/api/geocode/json?latlng=’. $latitude .’,’. $longitude .’&key=API_KEY );
Instead of API_KEY I wrote the browser API key what I received from google.
Do I miss something guys? Any suggestions how I could fix this?
Live link to demo page: http://asvanykincs.hu/map/
It looks like you edited the lines in the
geocode()function, but that is for when you save placemarks and it looks up the coordinates of the marker.To fix the front-end, you’d want to edit the URL in the
loadResources()function.Hello Ian, thanks very much for your help. I have tried editing the URL in the loadResources() function but I had no luck. I received the following error when checking out the web inspector, any help would be appreciated.
{ "error_message" : "Invalid request. Missing the 'address', 'bounds', 'components', 'latlng' or 'place_id' parameter.", "results" : [], "status" : "INVALID_REQUEST" }Ok, it looks like I’ll need to add a new filter to the plugin. I’ll try to get that out in the next few days.
Hello Ian, thanks again for your support. I’ll keep an eye out for your update, I love how flexible your plugin is and I want to continue using it!
I’ve added new UI options for the Maps API key and Geocoding API key. I don’t have time to finish testing everything and issue a release today, but I might tomorrow, or later next week.
If you want to test it out early, you can download the latest development version:
https://downloads.wp.xz.cn/plugin/basic-google-maps-placemarks.zip
The topic ‘javascript error’ is closed to new replies.