Title: Basic Google Maps Placemarks error: bgmpData undefined.
Last modified: August 22, 2016

---

# Basic Google Maps Placemarks error: bgmpData undefined.

 *  [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/)
 * the first time I open the page that contains the map appears this error: “Basic
   Google Maps placemarks error: bgmpData undefined.”. if I do a refresh of the 
   browser map appears and since then also appears through the navigation menu of
   the site. Any idea? the site is [http://www.keepradio.it](http://www.keepradio.it)
   map is under “REDAZIONE” -> “AROUND THE WORLD”
 * [https://wordpress.org/plugins/basic-google-maps-placemarks/](https://wordpress.org/plugins/basic-google-maps-placemarks/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823067)
 * It’s working when I visit the page, but there is an error in the JavaScript console
   that may indicate other problems:
 * >  You have included the Google Maps API multiple times on this page. This may
   > cause unexpected errors.
 * It’s probably being included a second time by another plugin or by your theme.
 *  Thread Starter [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823068)
 * I have corrected this error but the problem remains
 *  Thread Starter [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823069)
 * the strange thing is that if someone has never opened the site, the map works,
   if after that person back there, map does not work anymore
 *  Thread Starter [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823078)
 * reinstalling everything, shows “Loading map …”, but no map. I’ve already checked
   the footer
 * <? php wp_footer (); ?>
 * </ body>
    </ html>
 * is this right?
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823099)
 * Ah, ok, I see it happening now too.
 * The `bgmpData` variable is output in the source, but it looks like you may have
   some custom code that loads the BGMP JavaScript before `bgmpData` is output.
 *     ```
       JS.load('http://www.keepradio.it/wp-content/plugins/basic-google-maps-placemarks/functions.js', function() {
       });
       ```
   
 * Why is that there? It shouldn’t be necessary. If it is necessary because of some
   custom stuff on your end, try moving it to after `bgmpData` is output.
 *  Thread Starter [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823113)
 * it was a test, because if I do not call the js after the page load it remains
   on “loading map”
    I did not understand where you suggest I move it
 *  Thread Starter [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823115)
 * Now I removed my script, if you take a look, you’ll see that it is still on the
   loading
 *  Thread Starter [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823121)
 * I put an alert in functions.js, you can see that the alert appears only to refresh
   the browser, what does that mean? as I can do to properly load the file?
 *  Thread Starter [clairative](https://wordpress.org/support/users/clairative/)
 * (@clairative)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823134)
 * if i enter my script, the first time the map fails to load, but after a refresh
   is also available if you browse the site and when you return to that page …. 
   the question is, how do I load data map the first time? if I use your plugin 
   without modification remains on loading … I’m desperate!
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823163)
 * It looks like the dynamic script tag is still there; can you remove it so I can
   see the problem happening under normal conditions?
 * Whatever the problem is, it’s likely caused by another plugin, or your theme.
   If you temporarily disable all the plugins and switch to one of the Core themes,
   I’ll bet that it works fine. You can then re-enable them one by one until you
   find the one that causes the conflict.
 * That’ll help isolate what the problem actually is, which will then point you 
   to a solution.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Basic Google Maps Placemarks error: bgmpData undefined.’ 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/)

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)
 * [load](https://wordpress.org/support/topic-tag/load/)

 * 10 replies
 * 2 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined/#post-5823163)
 * Status: not resolved