Oops! Something went wrong. JavaScript????

New home Forums Basic Version Troubleshooting Oops! Something went wrong. JavaScript????

Viewing 15 posts - 16 through 30 (of 44 total)
  • Author
    Posts
  • #22929
    thewaywardroad
    Member

    It actually shows up on my page just fine. I get the error message when I try to edit it though.

    #22930
    stephangriesel
    Participant

    Hi thewaywardroad,

    Thank you for sharing your link. I just had a look and can see the map in the widget area “current location”. Also had a look to see if any JavaScript errors found on page but don’t see any errors. Can you please explain your problem? If possible can you share screenshot of your problem as well as your JavaScript console? You can open the JavaScript console by pressing Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac).

    Looking forward to your reply 🙂

    #22931
    thewaywardroad
    Member

    Hi Stephan,

    Here are some screenshots:

    • This reply was modified 6 years, 9 months ago by thewaywardroad.
    Attachments:
    You must be logged in to view attached files.
    #22939
    stephangriesel
    Participant

    Thank you for the screenshots. Can you please open your page in incognito mode and try again? If any errors, please share screenshots.

    #22940
    thewaywardroad
    Member

    Hi Stephan, I still get the same message:

    Attachments:
    You must be logged in to view attached files.
    #22944
    stephangriesel
    Participant

    Thank you for the quick reply 🙂

    The reason you are getting this is because the current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings of your API key on the Google API Console.

    Please see your API keys on your console:
    https://console.developers.google.com/project/_/apiui/credential

    Best practices for securely using API keys:
    https://support.google.com/googleapi/answer/6310037

    Attached screenshot of where you can find this setting.

    Attachments:
    You must be logged in to view attached files.
    #22949
    thewaywardroad
    Member

    Thank you! Just one question:

    What URL do I set where it says: “You have not set any referrers. Other applications might be able to use this key” I am assuming I have to put *.thewaywardroad.com/* but I wanted to double check first. Thanks!

    #22950
    thewaywardroad
    Member

    I did what I mentioned in the comment above but nothing has changed. I attached a new screenshot of the console. I feel like I might be missing a step. Thanks again!

    Attachments:
    You must be logged in to view attached files.
    #22952
    PatD
    Moderator

    Add *.thewaywardroad.com and *thewaywardroad.com to the list of allowed referrers. I’m not sure that’s going to clear up the errors where your client is blocking the Google Maps API, but it may.

    #22953
    PatD
    Moderator

    Add *.thewaywardroad.com and *thewaywardroad.com to the list of allowed referrers. I’m not sure that’s going to clear up the errors where your client is blocking the Google Maps API, but it may.

    #22954
    thewaywardroad
    Member

    Yeah I did that but nothing has changed so far. Any other ideas on how I can fix this?

    #22964
    PatD
    Moderator

    Hi again,

    Like Stephan, I’m not able to reproduce the problem you are having when I visit http://thewaywardroad.com. I can see the map and it appears to be functioning normally. I also do not find any JavaScript errors on the page.

    Have you tried clearing the browser cache and history? I’ve found that Chrome, especially, can be “sticky” when it comes to errors on a page load. Once it runs into it, it won’t stop showing it until the cache is cleared.

    #22975
    thewaywardroad
    Member

    Hi again,

    Yeah, the problem does not seem to be on the website. It shows and functions normally.

    The problem, however, shows up once I click on the “Maps” plugin within my wp-admin. I cleared the cache and history. I also tried to log in with other browsers but I get the same message.

    Attachments:
    You must be logged in to view attached files.
    #22993
    Dylan
    Moderator

    Hi there,

    So sorry for the run around on this one.

    Could I ask that you send us an updated screenshot of the JavaScript error console, after adding the relevant referrers?

    This may shed some light as to what is going wrong within the map editor.

    We would really like to get this sorted ASAP for you. 🙂

    #22997
    thewaywardroad
    Member

    No problem, Dylan. Thanks for the help.
    I am attaching screenshots of both the javascript console and the google api key. Thanks again!

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 16 through 30 (of 44 total)
  • You must be logged in to reply to this topic.