1. Home
  2. Knowledge Base
  3. Troubleshooting
  4. 🚨 The map doesn’t show up

🚨 The map doesn’t show up

Common Issue: Map stuck on loading spinner + JavaScript error

If your map doesn’t load and only shows a spinning loading icon or you see this error in your browser’s developer console:

Uncaught ReferenceError: oum_max_image_filesize is not defined at OUMConfig

…it usually means that the map’s JavaScript was loaded before its configuration script. This often happens due to caching or optimization plugins (like WP Rocket) changing the script load order or deferring essential files.

Follow the steps below to fix the issue and get your map displaying correctly.

Map Not Displaying Correctly with WP Rocket

If you’re using WP Rocket for caching, you may encounter issues with the Open User Map not displaying properly. This is a known issue related to caching and minification settings. You can quickly check if this is the problem by bypassing the WP Rocket cache:

👉 Try visiting your map page with ?nowprocket at the end of the URL:
https://your-page-with-the-map.com/?nowprocket

Solution

  1. Clear WP Rocket Cache
    • Go to WP Rocket settings in your WordPress dashboard.
    • Manually clear or refresh the cache.
    • Check if the map is now working as expected.
  2. Exclude the Map Page from Caching (if needed)
    If the issue persists, try disabling caching and minification for the page containing the map:
    • In WP Rocket settings, add the map page URL to the “Never Cache URL(s)” field.
    • Disable CSS/JS minification for the page if necessary.

After making these changes, clear your browser cache and test again. If the issue continues, feel free to reach out for further support.

Map Not Displaying When Loaded Dynamically

If the map doesn’t appear when loaded later (e.g., inside a hidden tab or after revealing dynamic content), it may need to be manually refreshed.

Solution

You can trigger the oumMap.invalidateSize() method once the content has fully loaded.

Run this JavaScript command when the map content becomes visible.
For instance, trigger it right after a hidden tab is shown or a popup containing the map is opened.

JavaScript
oumMap.invalidateSize();

This will reinitialise the OUM map.

Problems with Content Preloading

Some themes/plugins use content preloading, which can break the loading of the OUM map. If this applies to your site, try disabling preloading for the page with the map.

🤷‍♂️ Still not working?

If you’ve tried the steps above and the map still doesn’t show up, I’m here to help!
📩 Please contact me directly with a short description of your issue and a link to the page where the map is not showing.
I’ll get back to you as quickly as possible.

➡️ Contact Support

Was this article helpful?

Related Articles


EN