Support » Plugin: Open User Map » Undefined variable $type in partial-map-init.php

  • Resolved dos81

    (@dos81)


    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 2 years ago by dos81.
    • This topic was modified 2 years ago by dos81.
    • This topic was modified 2 years ago by dos81.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author 100plugins

    (@100plugins)

    Thanks @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

    (@100plugins)

    Hey @dos81! I just released a new version. If you upgrade to v1.2.13 the warning should be gone.

    Plugin Author 100plugins

    (@100plugins)

    Hey @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.