New home › Forums › Basic Version › Troubleshooting › Oops! Something went wrong. JavaScript????
Tagged: JavaScript, loading error
- This topic has 43 replies, 8 voices, and was last updated 6 years, 7 months ago by Dylan.
-
AuthorPosts
-
December 21, 2016 at 6:09 pm #22929thewaywardroadMember
It actually shows up on my page just fine. I get the error message when I try to edit it though.
December 21, 2016 at 6:15 pm #22930stephangrieselParticipantHi 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 🙂
December 21, 2016 at 6:19 pm #22931thewaywardroadMemberHi 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.December 21, 2016 at 6:41 pm #22939stephangrieselParticipantThank you for the screenshots. Can you please open your page in incognito mode and try again? If any errors, please share screenshots.
December 21, 2016 at 6:45 pm #22940thewaywardroadMemberHi Stephan, I still get the same message:
Attachments:
You must be logged in to view attached files.December 21, 2016 at 6:58 pm #22944stephangrieselParticipantThank 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/credentialBest practices for securely using API keys:
https://support.google.com/googleapi/answer/6310037Attached screenshot of where you can find this setting.
Attachments:
You must be logged in to view attached files.December 21, 2016 at 9:32 pm #22949thewaywardroadMemberThank 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!
December 21, 2016 at 10:02 pm #22950thewaywardroadMemberI 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.December 21, 2016 at 10:09 pm #22952PatDModeratorAdd *.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.
December 21, 2016 at 10:09 pm #22953PatDModeratorAdd *.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.
December 21, 2016 at 10:32 pm #22954thewaywardroadMemberYeah I did that but nothing has changed so far. Any other ideas on how I can fix this?
December 22, 2016 at 8:33 pm #22964PatDModeratorHi 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.
December 23, 2016 at 10:27 pm #22975thewaywardroadMemberHi 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.December 27, 2016 at 7:44 am #22993DylanModeratorHi 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. 🙂
December 27, 2016 at 8:18 am #22997thewaywardroadMemberNo 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. -
AuthorPosts
- You must be logged in to reply to this topic.