Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: No Search Results Appearing #58320
    Adam
    Participant

    Google Tag Manager has nothing to do with the SLP issue.
    Google Tag Manager is used for marketing tracking and analytics.
    I disabled Tag Manager and the issue with SLP is still occurring.

    The error is happening on the line specific to SLP:
    https://www.kelato.com.au/wp-json/store-locator-plus/v2/geocode/cc2a9cffbf54a5cae55c01ecbe2280e5/2000

    Am I right in guessing that when a user submits a search, SLP uses Google Maps (through the API) to find the searched location, then returns this location and the cluster of stores closest to this location?

    Looking in my Google account, the API requests are coming through to Google and there are no reported errors there.

    When looking in the Firefox Console, I get this error:
    <span class=”message-body-wrapper”>SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
    </span>There is no JSON data being returned by SLP.

    This is the next line after the 500 error:
    Google JavaScript API geocoder failed with status ERROR results undefined   slp_core.min.js?ver=1545006973:1

    So the request is being sent to Google just fine, Google is reporting no errors, but the results are not coming back into SLP correctly.

    Please provide some solutions for how to get the JSON data to return correctly.

     

    in reply to: No Search Results Appearing #58292
    Adam
    Participant

    Hi,

    Yes, I have already setup the key.

    When I change where the map is centered, this responds as expected. If I check the box to show locations at startup, I also see an expected list of results at startup.

    I have also added a new address and this was geocoded correctly.

    As you mentioned, there is an error occurring when a search is submitted. How do I troubleshoot this to find out what is causing the error?

Viewing 2 posts - 1 through 2 (of 2 total)