Title: javascript error
Last modified: September 1, 2016

---

# javascript error

 *  Resolved [macpheek](https://wordpress.org/support/users/macpheek/)
 * (@macpheek)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/)
 * 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/](http://xtremecsc.ie/cashel/)
 * Thanks in advance, hope you can help
 * [https://wordpress.org/plugins/basic-google-maps-placemarks/](https://wordpress.org/plugins/basic-google-maps-placemarks/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/javascript-error-101/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/javascript-error-101/page/2/?output_format=md)

 *  [dcecharlotte](https://wordpress.org/support/users/dcecharlotte/)
 * (@dcecharlotte)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509946)
 * Same problem … Really annoying I do not know what to do…
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509952)
 * [@macpheek](https://wordpress.org/support/users/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](https://wordpress.org/support/topic/google-api-key-1).
   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 the `easy-foundation-
   shortcodes` plugin.
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509953)
 * [@dcecharlotte](https://wordpress.org/support/users/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.
 *  [dcecharlotte](https://wordpress.org/support/users/dcecharlotte/)
 * (@dcecharlotte)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509954)
 * [@ian](https://wordpress.org/support/users/ian/) the map is here : [http://qisignature.ca/](http://qisignature.ca/)
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509956)
 * I don’t see the map there. Is it on the homepage you linked to, or another page?
 *  [dcecharlotte](https://wordpress.org/support/users/dcecharlotte/)
 * (@dcecharlotte)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509957)
 * Oh sorry, just 10minuts it’ll come back ..
 *  [dcecharlotte](https://wordpress.org/support/users/dcecharlotte/)
 * (@dcecharlotte)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509961)
 * It’s ok, the map is just at the end of the scroll on this page : [http://qisignature.ca/](http://qisignature.ca/)
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7509962)
 * 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 function`
 * You’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.
 *  [boombalaya](https://wordpress.org/support/users/boombalaya/)
 * (@boombalaya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7510025)
 * 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
 *  [kutasdavid](https://wordpress.org/support/users/kutasdavid/)
 * (@kutasdavid)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7510039)
 * same for me — not working; i tweaked with these codes:
 * $geocodeResponse = wp_remote_get( ‘[https://maps.googleapis.com/maps/api/geocode/json?latlng=&#8217](https://maps.googleapis.com/maps/api/geocode/json?latlng=&#8217);.
   $latitude .’,’. $longitude .’&key=API_KEY’ );
 * $geocodeResponse = wp_remote_get( ‘[https://maps.googleapis.com/maps/api/geocode/json?latlng=&#8217](https://maps.googleapis.com/maps/api/geocode/json?latlng=&#8217);.
   $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/](http://asvanykincs.hu/map/)
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7510070)
 * 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.
 *  [boombalaya](https://wordpress.org/support/users/boombalaya/)
 * (@boombalaya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7510074)
 * 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"
       }
       ```
   
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7510087)
 * 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.
 *  [boombalaya](https://wordpress.org/support/users/boombalaya/)
 * (@boombalaya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7510088)
 * 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!
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-101/#post-7510106)
 * 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.wordpress.org/plugin/basic-google-maps-placemarks.zip](https://downloads.wordpress.org/plugin/basic-google-maps-placemarks.zip)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/javascript-error-101/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/javascript-error-101/page/2/?output_format=md)

The topic ‘javascript error’ is closed to new replies.

 * ![](https://ps.w.org/basic-google-maps-placemarks/assets/icon-128x128.png?rev
   =1152531)
 * [Basic Google Maps Placemarks](https://wordpress.org/plugins/basic-google-maps-placemarks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-google-maps-placemarks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-google-maps-placemarks/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-google-maps-placemarks/reviews/)

 * 19 replies
 * 6 participants
 * Last reply from: [yamada0901](https://wordpress.org/support/users/yamada0901/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-101/page/2/#post-8210440)
 * Status: resolved