Geocode was not successful for the following reason: ZERO_RESULTS
This topic contains 12 replies, has 4 voices, and was last updated by Stiofan O’Connor 8 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 28, 2016 at 7:55 pm #332243
Geocode was not successful for the following reason: ZERO_RESULTS
I get this error when I click “Set Address On Map” on the add-listing screen for various locations if I don’t use a zip code. I started with only two locations: San Diego & Los Angeles California.
For instance these gave me the error:
Portland, Oregon
Beaverton, Oregon
Las Vegas, Nevada
New York, Iowa (even with a zip code)These did not:
Reno, Nevada
Jacksonville, Florida
Riverside, California
New York, New YorkIf I add a zip code, (or move the map slightly which usually adds the zip) the problem cities seem to work. I manually added Las Vegas, NV as a location in the back end, but it still gives the error on the add-listing page.
It doesn’t seem to matter if I use the location search in the address field, or if I just put in the city in the address, and type in the region and city.
I have disabled the location manager, set the default city to a different city, back to the original city, then reenabled the location manager plugin. No change.
I have cleared geolocation settings in my browser.
FYI, I have some scripts and CSS under GD/Design/Scripts that modify this page, but the problem exists without any of this.
All of the credentials and the add-listing url can be found in this forum request:
https://wpgeodirectory.com/support/topic/google-maps-api-request-denied/Thanks for your help.
CoryDecember 28, 2016 at 10:55 pm #332461I alerted Stiofan again since he has looked at it already. Please add comments about the same issue to the same topic in future, then the right staff members will be automatically alerted.
ThanksDecember 29, 2016 at 10:23 am #332638Can you give me the exact details you have set when clicking the button?
Stiofan
December 29, 2016 at 7:15 pm #333055Thanks Guust and Stiofan.
I filled in Address (with a city), city, region, country. No zip usually unless specified. Also title and description. Address might not be able to have a full address, because that might auto fill a zip code.
It seems to mostly be when there is no zip code on only some cities, but as I mentioned I found one city where the zip code doesn’t matter. Type in New York, Iowa
Thanks.
December 30, 2016 at 9:25 pm #333828Hey guys, any further questions on this for me? Would you like me to record a screencast showing the issue?
Thanks,
CoryDecember 30, 2016 at 9:30 pm #333831Hi Cory,
the developers are looking into it and will let you know asap.
It seems like we can’t recreate on our servers, so it could take a bit longer to fix.
I think they will answer after the week end for sure.
Thankss for your patience and happy new year
January 2, 2017 at 12:24 pm #335278Yes, i still need to know what EXACTLY you are inputting, i am not sure if you are inputting it into the single address or also filling out the city/region fields. A video or screen shot would help.
Stiofan
January 2, 2017 at 1:10 pm #335350This reply has been marked as private.January 2, 2017 at 1:59 pm #335378Thanks for the info, i have made a small change, can you check things now.
Thanks,
Stiofan
January 2, 2017 at 2:29 pm #335407Ok, thanks. Here’s what I see:
Portland, OR – OK
Beaverton, OR – OK
Las Vegas, NV – OK
New York, IA – error
New Brunswick, NJ – error
Vancouver, WA – OK
Vancouver, BC, CA – OK
and a bunch of other cities I tried were ok.So it’s better because Las Vegas for one was erroring when I made that video.
While the underlying problem is being fixed, is there a way to disable the error popup? In most cases it seems to set the map properly anyway, and even if the error were to trigger, I don’t want my users to ever see it.
Thanks,
CoryJanuary 2, 2017 at 2:53 pm #335415For the New York example what is sent to the Google API is “New York,New York,Iowa,United States,50238” and for some reason that is not found, you can try entering that into the Google geolocate demo: https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple
There is no easy way to disable that message.
Stiofan
January 2, 2017 at 7:48 pm #335565Ok, I see. All those errors are coming from google.
What change did you make? Is it something that will be overwritten when I upgrade or set this up on another site?
I found this online as an easy way to redirect alerts to the console and it works fine in chrome:
// Redirect javascript alerts to console window.alert = function ( text ) { console.log( 'Alert: ' + text ); return true; };
Thanks for your help.
CoryJanuary 3, 2017 at 11:42 am #335750Hi Cory,
No the changes will be in the next release.
Thanks,
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket