• Resolved bschroeter

    (@bschroeter)


    Hello there!

    I’m encountering an error where the map doesn’t show on the single page for locations. It does show at the directory level. Here is a screenshot of my current settings…: https://cln.sh/F3vcgRc7

    Do you have any advice as to how I can fix it?

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

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

    Well, it seems there is something in your website that is altering the ordern in which javascript files are loaded, and so the definition of the wpslCallback function in wpsl-gmap.min.js happens after it is called.

    In the provided URL, the ‘https://maps.google.com/maps/api/js’ script is defined in line 1791 and contains a reference to wpslCallback, which is defined in wpsl-gmap.min.js. But this script is defined in line 1797, so line 1791 doesn’t know about this function and triggers an error.

    Are you running any cache/optimization plugin that may be causing this behaviour. Alternatively, maybe you have some solution for deferring the render of javascript to speed up the page. These are common causes for an issue like this. Please let us know.

    Thread Starter bschroeter

    (@bschroeter)

    Hey there!

    We’re using Runcloud and so we had ‘Runcloud Hub’ running, but I don’t have any other optimization plug-ins running. I’ve disabled Runcloud Hub just to see if it would help.

    Thread Starter bschroeter

    (@bschroeter)

    It seems that it works if I disable Smart Slider 3. Not sure how they conflict, but as soon as I disable it, the map shows.

    Hi again,

    Try something if you can. Look, right now this is what the source code for your URL looks like (map not working). See this screenshot and notice lines 1820 and 1825.

    Actually, line 1825 should appear BEFORE line 1820, because in line 1825 is where the wpslCallback function is defined. But, for some reason, your website prints the lines out of order. When the browser reads line 1820, there is a reference to a function that has not been defined yet, and it triggers an error.

    Now, if you disable Smart Slider 3 and take a look at the source code, do these lines appear in the right order? Please check and let us know.

    Regards,

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @bschroeter are you using the free or the pro version of Smart Slider 3?

    • This reply was modified 1 year, 6 months ago by Tijmen Smit. Reason: clarified question
    Plugin Author Tijmen Smit

    (@tijmensmit)

    @bschroeter I tried to replicate the issues with the Smart Slider active, but it doesn’t break. Can you share a list of other plugins your using? Also, if you keep the Smart Slider plugin active and switch back to a default WP theme, does this make a difference?

    Thread Starter bschroeter

    (@bschroeter)

    @tijmensmit @farroyob Thank you both so much for the support! To clarify, I’m using the Astra Pro theme and I’m using Smart Slider 3. The same thing happens on the Pro and FREE version, but I’ve switched to the FREE version now.

    If I keep Smart Slider enabled, and merely switch themes, it seems to work. If I keep Astra enabled and Smart Slider enabled, it doesn’t work. If I keep Astra but disable Smart Slider, it works.

    Thread Starter bschroeter

    (@bschroeter)

    @tijmensmit I traced it down. If I disable the widget add-on for WP Store Locator, the single page map works even with Astra and Smart Slider 3 enabled. Unfortunately, I’m using the widget in my header and so it’s on every page. Any ideas? ??

    • This reply was modified 1 year, 6 months ago by bschroeter.
    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you check if you are using the latest version of the search widget ( 1.2.1 )?

    Thread Starter bschroeter

    (@bschroeter)

    Just confirmed. I’m on 1.2.1. ??

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You have a dev environment where this happens? Could you open a ticket here and include temporary login details so I can check somethings?

    Thread Starter bschroeter

    (@bschroeter)

    Thank you so much. I do! I just submitted a ticket, and then quickly submitted a second to provide you with my credentials. I forgot to include them in the first one. Sorry!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘wpslCallback is not a function’ is closed to new replies.