[Resolved] Markers not showing up when street address is used
This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to: Add an address i the back end. It shows up in the backend map but not inte front end.
Link to a page where the issue can be seen: hidden link and the frontend eg. hidden link if a site in Spain is added. If I take a way one digit in one of the coordinates and resave it works.
I expected to see: the marker
Instead, I got: nothing
You have all login details in the previous ticket.
I know it is frowned upon to add a problem to an existing ticket but I wanted to share I experience the same thing.
I have read every ticket on "marker doesn't show up (anymore)", tried whatever setting, tried hardcoding addresses. Nothing worked. Addresses seem fine in backend, but nothing show on map on frontend.
The only address that seemed to work hardcoded is the address of the white house, every other address seems to be just ignored.
Then I tried the trick Kristian mentions and bingo!, I got a marker on the map.
I did some more testing, enabled debug on the map shortcode.
An access-denied message showed up.
Copying the url of the mentioned url in the browser showed this message:
{
"error_message" : "API keys with referer restrictions cannot be used with this API.",
"results" : [],
"status" : "REQUEST_DENIED"
}
Using the mentioned url without the API-key parameter showed correct info for the address.
It seems when using the geocode API you should not send the API-key in the url request. Disabling http restrictions in the Google project also solves the problem for now.
Mohammed asked me to take over this ticket, I hope that is ok. There had been troubles from Google API when we use URL restriction, as such we do not recommend restricting url. You can try to add url without asterisks like:
Hi Noman
Glad something is happening!!
I don't see any difference between your 2 first examples.
-Tried without any restrictions, no luck.
-The field on the Google page has a default text of "*.example.com/*" that's not confusing at all! Anywho tried with "hidden link" no difference.
-Tried carairbikemuseums.com, no difference, even with or without trailing /
-Changed a digit in the coordinates and everything works
I waited roughly 5 minutes between each change. I have no restrictions at the moment.
Can you help us with the other Map problem which is more urgent since our site isn't working? None of the changes above affect that problem.
Just to confirm, have you generated new Google Maps API key and add again in your site >> Toolset >> Settings >> Maps >> Google Map API key, and did not help?
Can you please provide WordPress and FTP login details, because in the previous thread there are so many login details and tried few but not able to log in and get this message -- see attached screenshot.
Your next answer will be private which means only you and I have access to it.
Also please provide:
- Link to front end page where I can see the map
- Link to backend page where you have inserted the map
- Which address you are trying to enter
- Which co-ordinates values are working and which are not working.
Can you help us with the other Map problem which is more urgent since our site isn't working?
>> What is the other problem, please provide more details.