Title: Undefined variable $type in partial-map-init.php
Last modified: March 28, 2022

---

# Undefined variable $type in partial-map-init.php

 *  Resolved [dos81](https://wordpress.org/support/users/dos81/)
 * (@dos81)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-type-in-partial-map-init-php/)
 * hello, thanks for this great plugin!
    i just started using it and get the following
   error above the map, when adding places. the error appears once per place added.
   i deactivated all plugins and switched to the 2022 stock theme but it persists.
   i completely removed the plugin and reinstalled it. still getting the error.
 * i guess it is missing the “type” of every place i add, but i dont see any filed
   to enter a type when adding/editing a place.
 * when putting all places in the trash, the error is gone. when adding the shortcode
   with types=”[anything]” the error disappears, but no markers are shown.
 * thanks in advance for the help!
 * `Warning: Undefined variable $type in [PATH]/wp-content/plugins/open-user-map/
   templates/partial-map-init.php on line 89 Warning: Undefined variable $type in[
   PATH]/wp-content/plugins/open-user-map/templates/partial-map-init.php on line
   120`
    -  This topic was modified 4 years, 2 months ago by [dos81](https://wordpress.org/support/users/dos81/).
    -  This topic was modified 4 years, 2 months ago by [dos81](https://wordpress.org/support/users/dos81/).
    -  This topic was modified 4 years, 2 months ago by [dos81](https://wordpress.org/support/users/dos81/).

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

 *  Plugin Author [100plugins](https://wordpress.org/support/users/100plugins/)
 * (@100plugins)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-type-in-partial-map-init-php/#post-15503805)
 * Thanks [@dos81](https://wordpress.org/support/users/dos81/) for reaching out!
   I will dive into this and keep you posted asap.
 * Quick solution to just get rid of the warning message would be to set define(‘
   WP_DEBUG_DISPLAY’, false); in wp-config.php. Everything should work as expected
   as this is “only” a warning not an error. However there must be a reason for 
   the warning so I will try find it.
 * Best Regards,
    Daniel
 *  Plugin Author [100plugins](https://wordpress.org/support/users/100plugins/)
 * (@100plugins)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-type-in-partial-map-init-php/#post-15512121)
 * Hey [@dos81](https://wordpress.org/support/users/dos81/)! I just released a new
   version. If you upgrade to v1.2.13 the warning should be gone.
 *  Plugin Author [100plugins](https://wordpress.org/support/users/100plugins/)
 * (@100plugins)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/undefined-variable-type-in-partial-map-init-php/#post-15546761)
 * Hey [@dos81](https://wordpress.org/support/users/dos81/)! I assume the problem
   is solved so I will mark this thread as resolved. Feel free to reply back in 
   case the issue persists, though.
 * Best regards,
    Daniel

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

The topic ‘Undefined variable $type in partial-map-init.php’ is closed to new replies.

 * ![](https://ps.w.org/open-user-map/assets/icon-256x256.png?rev=2779645)
 * [Open User Map](https://wordpress.org/plugins/open-user-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/open-user-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/open-user-map/)
 * [Active Topics](https://wordpress.org/support/plugin/open-user-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/open-user-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/open-user-map/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [100plugins](https://wordpress.org/support/users/100plugins/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/undefined-variable-type-in-partial-map-init-php/#post-15546761)
 * Status: resolved