September 4, 2018 at 5:23 am #1005260
Hello, I am working on an issue involving the new Google Maps API (yes I know, you guys must hate it by now…)
“Oops! Something went wrong.
According to the Console, this would be caused by an invalid key. I have however created several new keys following instructions, enabled billing on the account and ensured the credit card works (it works for other sites in our organization).
I contacted Google about this and they have pointed out that the key in the source code for the page shows that there are spaces (“%20” when URl encoded) in our “key” parameter. (see private data)
When I check the Google services page on the API settings, there is NO space before or after the key. I have tried disabling server side static caching, deleting the key, saving settings then re-pasting making sure there is no space, etc. but the space persists.
Thanks,September 4, 2018 at 10:42 am #1005381
To be honest I doubt this code is from our theme. Please deactivte your wordpress plugins (and your custom code) to see if Enfold outputs the invalid code. Enfold normally adds following code to the website to load the maps (I can also see this code on your webswite in the footer area):
DudeSeptember 4, 2018 at 8:20 pm #1005743
Thank you Dude!
I didn’t think about that possibility – I thought it was a bit of theme code.
It turned out it was an API key transferred improperly (and automatically) by our Geodirectory plugin was the culprit.
Thank you. Case solved!September 5, 2018 at 3:07 am #1005844
You must be logged in to reply to this topic.