Title: Basic Google Maps Placemarks error: bgmpData undefined.
Last modified: October 12, 2017

---

# Basic Google Maps Placemarks error: bgmpData undefined.

 *  [njs](https://wordpress.org/support/users/njs/)
 * (@njs)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined-3/)
 * Please patch / for anyone else having the same issue…
 * Markers containing HTML in the details field caused the following error
 * > Basic Google Maps Placemarks error: bgmpData undefined.
 * I was able to solve it by replacing
 * `markers : <?php echo json_encode( $this->getMapPlacemarks( $attributes ) ); ?
   >`
 * with
 * `markers : <?php echo json_encode( $this->getMapPlacemarks( $attributes ), JSON_HEX_QUOT
   | JSON_HEX_TAG); ?>`
 * in ./wp-content/plugins/basic-google-maps-placemarks/views/shortcode-bgmp-map.
   php

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-bgmpdata-undefined-3/#post-9591921)
 * Hmmm, I’m not able to reproduce that with general HTML, so it may be dependent
   on the specific HTML, or encoding, etc.
 * Can you paste the exact content into a pastebin.com item and link it here? That
   might help me reproduce it.

Viewing 1 replies (of 1 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/)

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