• Recently WPSL has stopped working, unless logged. Issues are; none of the filter fields are available (Category, Within, Results), no map is displayed and no results are given when search is clicked. It does work if the URL contains parameters, eg: ?wpsl-search-input=Gl50&wpsl-radius=25&wpsl-results=25&wpsl-category=0. I have SiteGround Optimizer installed.

    I’ve tried the following:
    – Adding snippet to functions.php to exclude wpsl-js
    – Reviewed exclusions for all SG Optimizer settings and ensure WPSL was added where necessary.
    – Disabled SG Optimizer
    – WPSL Settings: compatibility mode – disabled (tried with enabled too).
    – WPSL Settings: Use default style – enabled
    – Checked [wpsl] shortcode in WPBakery Page builder page
    – F12 – Console – is showing no errors

    Not sure where to go from here – any help would be much appreciated.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there!

    Thanks for reaching out.

    To rule out an issue between Wp Store Locator and your theme, could you do a dumb test for me? Create a new empty post and just put the [wpsl] shortcode as the contents, preferably not using any page builders for that particular post. Let us know if that post shows the store locator or not.

    Regards,

    Thread Starter robinchichi

    (@robinchichi)

    Hiya – thanks for the feedback, unfortunately this didn’t work:
    https://zazz.chichi-fit.co.uk/wpsl-test/

    To 100% rule out the Theme, I briefly switched themes to Twenty Twenty-Three and still the same issue. I think it’s related to SG Optimizer, but I can’t work out why and how to fix.

    Hi again,

    So, if you could please try this solution instead, this has recently worked for another user who was also using SG Optimizer. Sorry the screenshot is in italian, but basically what you have to do is go to the SG Optimizer settings and use the option “Exclude from Defer JS View Block” (I don’t exactly recall the name of the option in English, let me know if you cannot find it) to add the jquery script as shown below:

    Screenshot.

    Once we remove the jquery script from the block rendering list, the map should work again ??

    Regards,

    Thread Starter robinchichi

    (@robinchichi)

    Both jquery.min.js and jquery-migrate.min.js were added. I tried removing them, but got the same issue. I’m testing in Chrome incognito, and hard refreshing (Shift + F5) after each change, so I don’t think it’s a caching issue.

    I think I’ve rule out JavaScript optimization by SG Optimizer as I first disabled the 3 options (Minify JS, Combine JS and Exclude from Deferral), I then enabled them, and added every available js file to ALL exclusions lists. But neither fixed the issue.

    Hi again,

    Thanks for doing all these tests. If none of that work then there must be something else, either related to SG Optimizer or not, that is causing the issue. You may want to open a support ticket directly with us so we can ask you for more information, does that sound ok?

    Regards,

    Thread Starter robinchichi

    (@robinchichi)

    Thanks – one note which may be important, if I log in with any user (not admin, just subscriber), then WPSL loads correctly.

    Here’s Console not logged in: https://zazz.chichi-fit.co.uk/wp-content/uploads/2023/06/WPSLIssue_Console_NotloggedIn.png

    And logged in: https://zazz.chichi-fit.co.uk/wp-content/uploads/2023/06/WPSLIssue_Console_loggedIn.png

    wpsl-gmap.min.js is not available to add in the SG Opt JavaScript exclusions.

    • This reply was modified 1 year, 9 months ago by robinchichi.

    Hi again,

    We received your ticket via our support ticket system and we’ll take it from there. Once we find the solution, I’ll publish it here for reference ??

    All the best,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP Store Locator not working’ is closed to new replies.