• Resolved morphiaz

    (@morphiazz)


    Hey,

    we are using the welaunch WordPress Store Locator and get this error. We already tried to add it in the script center, but it doesnt work.

    wordpress-store-locator-public.js?ver=2.1.0:82 Uncaught ReferenceError: google is not defined
        at Plugin.init (wordpress-store-locator-public.js?ver=2.1.0:82:24)
        at new Plugin (wordpress-store-locator-public.js?ver=2.1.0:61:8)
        at HTMLBodyElement.<anonymous> (wordpress-store-locator-public.js?ver=2.1.0:2440:18)
        at Function.each (jquery-1.12.4-wp.js?ver=6.0:2:2903)
        at jQuery.fn.init.each (jquery-1.12.4-wp.js?ver=6.0:2:846)
        at $.fn.<computed> [as storeLocator] (wordpress-store-locator-public.js?ver=2.1.0:2437:15)
        at HTMLDocument.<anonymous> (wordpress-store-locator-public.js?ver=2.1.0:2456:15)
        at i (jquery-1.12.4-wp.js?ver=6.0:2:27362)
        at Object.fireWith [as resolveWith] (jquery-1.12.4-wp.js?ver=6.0:2:28121)
        at Function.ready (jquery-1.12.4-wp.js?ver=6.0:2:29914)

    Do you have an idea, how to fix this?

    Best regards.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @morphiazz,

    The reason why the error occurs is because “wordpress-store-locator-public.js” is looking for the Google Maps API, but this API call is blocked by Complianz (with the Google Maps integration). This file is however dependent on the API being present, so it throws this “google is not defined” error.

    We have an existing integration with this WP Store Locator plugin, but it seems to be a different one from the one mentioned in your post.

    If you are comfortable writing your own integration, the steps in this article explain how to set this up for Google Maps implementations: https://complianz.io/custom-google-maps-implementation/

    There are several existing Google Maps integrations available on our integrations GitHub which can serve as an example: https://github.com/Really-Simple-Plugins/complianz-integrations

    If you require assistance with this, let us know. We would need to get in touch with the developer of the Store Locator plugin to see if we can acquire a development license, so we can look into an integration with this plugin.

    Kind regards,
    Jarno

    Hi @morphiazz,

    We haven’t heard from you in a while, is the issue resolved with the solution Jarno offered? We are happy to help you further.

    Kind regards, Kim van Dijk

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Complianz and WordPress Store Locator’ is closed to new replies.