• Resolved redkite

    (@redkite)


    This was working fine in the last few weeks, but not now. This is the console error:

    wpsl-gmap.min.js?ver=2.2.15:1 Uncaught ReferenceError: _ is not defined
    at HTMLDocument.<anonymous> (wpsl-gmap.min.js?ver=2.2.15:1)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    You seem to be using a caching plugin to minify the output.

    Can you disable it for a second and see if that makes a difference?

    Thread Starter redkite

    (@redkite)

    Any word on this? My client has had no dealer information display since Thursday.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You didn’t see my answer?

    It won’t break by itself, so something must have changed. Any plugin updates, settings you changed?

    Thread Starter redkite

    (@redkite)

    Sorry, I replied to this on my phone over the weekend and it’s not here.

    When the caching plugin is disabled and CDN turned off the problem is still there, no changes.

    It was working after the last round of updates to plugins (last Monday Aug. 27) but not working when checked by the client on Thursday. So no changes leading up to this problem, no different settings, etc.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you leave the auto optimize plugin off for a while so I can see the HTML output. Maybe the scripts where cached somewhere after the last update. Does it also not work in private mode in your browser.

    If I check the browser console, then it shows ‘ReferenceError: _ is not defined[Learn More]’. This means that the underscore.js library isn’t loaded, which the store locator does try to load and need to function.

    After you disable the autoptimize plugin, does underscore.js show up in the HTML source ( CTRL + U ).

    pro-tip for future reference; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.

    hope this helps debugging,
    frank (ao dev)

    Thread Starter redkite

    (@redkite)

    Thanks – I’ll do some testing on Monday and get back to you.

    Thread Starter redkite

    (@redkite)

    When I turn off AO, the store locator displays normally and underscore.js is there in the source. When I turn it on, underscore.js is gone and so is the store locator. I tried excluding underscore.js, that didn’t help.

    But it’s actually underscore.min.js and excluding that in AO *does* fix the problem. Thank you!

    great job redkite ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Map and directory not loading’ is closed to new replies.