Maps only display when logged in as admin

Home Forums MapPress Support Maps only display when logged in as admin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18790
    surfspot.de
    Participant

    Hi there,

    I updated from a really old version of MapPress Pro, so I´m not really sure what happend in between. Anyway, after updating, the maps work just fine, but when I logged out, no maps are displayed. Neither on a single page (e.g. https://surfspot.de/surfspots/suedamerika/argentinien/lago-los-molinos-potrero-de-garay/) nor on the country page (mashup hardcoded in template, e.g. https://surfspot.de/category/surfspots/suedamerika/argentinien/). Only an icon and the lat/long are displayed, to me it looks like some JS error.

    Ideas on how to fix this?

    Cheers,
    Joerg

     

    #18792
    Chris
    Keymaster

    Hi,

    It looks like something is preventing the plugin scripts from loading. Could you please try switching to a standard theme and deactivating all other plugins for a moment?

    I think you’ll see the map once you do that. You can reactivate one by one to find the culprit. A common problem is theme pages that don’t call wp_footer(), which is needed for script loading.
    https://developer.wordpress.org/reference/hooks/wp_footer/

    There are some other errors in the JavaScript console, but I don’t think they’re related.

    #18794
    surfspot.de
    Participant

    Hi Chris,

    thanks a lot… the solution is really quite embarrassing. It was as simple as clearing all caches (WP Fastest Cache) to activate the maps. I should have known 😉 Maybe put this in the installation guide, should prevent further questions 🤣

    Cheers,

    Joerg

    #18795
    Chris
    Keymaster

    I’m glad you figured it out, and thanks for letting me know! Caching and minifying plugins are the most common causes for this kind of problem.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.