Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Hi Rovanov,

    Thank you for using this plugin. The default location (if there are no coordinates) is indeed 0,0. Which is on the equator below Africa’s Gold Coast. So you are not getting wet – no need to pull out any sand bags ??

    Are there any errors in your browser console on page lad and/or when you click the “Search Address” button?

    Thread Starter Rovanov

    (@rovanov)

    Hi Patrick,

    Thanks for the quick response.
    No, I don’t see any error or warning message anywhere.
    Also nothing happens when i click at the “search address” button.

    Thanks and greetings

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Could you please provide me a temporary admin login to your Dashboard then?
    [email protected]

    I will have a look. That’s easier than trying to find it here ??

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    I log in and immediately see an error!
    https://paste.pics/35f89c98a3d6a12badf27b7e26f297c1

    This simply means that some plugin is changing your dashboard and not loading jQuery (yet).

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    The plugin WP-Piwik is causing this. As soon as you disable it, the error disappears and the map works like a charm.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    In WordPress the default $ to initiate jQuery usually needs to be replaced by jQuery. That is also why most snippets and tutorials about jQuery on the web do not work in WordPress by simply copy/paste.
    $('.em-email-users') becomes jQuery('.em-email-users')

    Personally, I found no benefit to it, except a lot of hassle. ??

    I changed the $ in the plugin script to jQuery for you. Reactivated the WP Piwik and then it does leave it alone and works.

    I will update the public release as well.

    Thread Starter Rovanov

    (@rovanov)

    Hi Patrick,
    Excellent, thank you very much!!
    How did you see the error directly when logging in?

    Sorry, I’m a layman, I understand that in your code it was a sloppiness out of convenience and the fault is not with the Piwik plugin?

    This simply means that some plugin is changing your dashboard and not loading jQuery (yet).

    Is that common for a plugin to do that?

    Thank you again!

    Solved

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    If you open a page in (say) Chrome. You can right-click -> inspect. That will open the browser console, giving you all kinds of info for debugging, etc.

    A long time ago, the WP team decided that, even though $ is the standard to initiate a jQuery command/function, in WP that $ needs to be replaced with the word jQuery. The reason was to prevent errors with other scripts.
    So, if not initiated correctly, WP will not recognize the $ as “inititiate jQuery” like all other platforms do.

    There is normally a simple workaround to “restore” the $, making coding easier and faster and cleaner. But apparently that is vulnerable with other plugins. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No data available from the location’ is closed to new replies.