Title: &#8220;Undefined array key 1&#8221; and &#8220;Undefined variable $MarkerArray&#8221;
Last modified: November 7, 2022

---

# “Undefined array key 1” and “Undefined variable $MarkerArray”

 *  [sheriffdonnerknall](https://wordpress.org/support/users/sheriffdonnerknall/)
 * (@sheriffdonnerknall)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-1-and-undefined-variable-markerarray/)
 * I just discovered that our page which uses the OSM maps displays a lot of warnings.
   I don’t know if these appeared with either the update to WP 6.1 or to PHP 8.1.
 * The code used for the plugin is for example
    `[osm_map_v3 map_center= "48.4735,8.7451"
   zoom="17" width="100%" height="300" map_border="thin solid " post_markers="1"
   type="" control="fullscreen,scaleline" bckgrndimg="GDPR_bckgrnd.png"]`
 * Any help is appreciated!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-array-key-1-and-undefined-variable-markerarray%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [MiKa](https://wordpress.org/support/users/photoweblog/)
 * (@photoweblog)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-1-and-undefined-variable-markerarray/#post-16198818)
 * Hi [@sheriffdonnerknall](https://wordpress.org/support/users/sheriffdonnerknall/)
 * thanks for your detailed feedback – we will try to reproduce it and provide an
   update with a fix.
 * Br, Michael
 *  Thread Starter [sheriffdonnerknall](https://wordpress.org/support/users/sheriffdonnerknall/)
 * (@sheriffdonnerknall)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-1-and-undefined-variable-markerarray/#post-16199385)
 * Great, thank you very much [@photoweblog](https://wordpress.org/support/users/photoweblog/).
   In case you need any additional information please let me know.
 * Regards,
    René
 *  Thread Starter [sheriffdonnerknall](https://wordpress.org/support/users/sheriffdonnerknall/)
 * (@sheriffdonnerknall)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-1-and-undefined-variable-markerarray/#post-16355823)
 * [@photoweblog](https://wordpress.org/support/users/photoweblog/) any update on
   this bug and a possible fix? Anything I can provide in addition to support you
   in finding the cause for this?
 * Regards,
   René

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

The topic ‘“Undefined array key 1” and “Undefined variable $MarkerArray”’ is closed
to new replies.

 * ![](https://ps.w.org/osm/assets/icon-256x256.png?rev=2087144)
 * [OSM - OpenStreetMap](https://wordpress.org/plugins/osm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/osm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/osm/)
 * [Active Topics](https://wordpress.org/support/plugin/osm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/osm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/osm/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [sheriffdonnerknall](https://wordpress.org/support/users/sheriffdonnerknall/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-1-and-undefined-variable-markerarray/#post-16355823)
 * Status: not resolved