tmfsupport
Forum Replies Created
-
AuthorPosts
-
January 2, 2017 at 7:48 pm in reply to: Geocode was not successful for the following reason: ZERO_RESULTS #335565
Ok, 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 2, 2017 at 2:29 pm in reply to: Geocode was not successful for the following reason: ZERO_RESULTS #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 1:10 pm in reply to: Geocode was not successful for the following reason: ZERO_RESULTS #335350This reply has been marked as private.December 30, 2016 at 9:25 pm in reply to: Geocode was not successful for the following reason: ZERO_RESULTS #333828Hey guys, any further questions on this for me? Would you like me to record a screencast showing the issue?
Thanks,
CoryDecember 29, 2016 at 7:15 pm in reply to: Geocode was not successful for the following reason: ZERO_RESULTS #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.
I wrote above that I used the same API key on two test sites and although it does report an API error, it does allow the map to function and report a location without a popup error, so clearly something is different on the main site, and the key is enabled and working.
Nevertheless, I erased the API key from the settings, saved, then I clicked Generated A Key to allow it to create a brand new project. I then saved and applied the new key.
Now it is working. I’ll let you know if that changes (sometimes I noticed Google changing behavior after a day). Thank you very much for your help.
I had edited my post perhaps after you replied. All our production and test sites are SSL everywhere.
Thanks.This reply has been marked as private.The category dropdown is already pretty clunky and is completely unnecessary when there is only one category. Since the map doesn’t work without a category, the development choice is either a poor user interface or no map.
I have written a script to work around this. This will work with only one category, but should be pretty easy for a jquery programmer to expand to other things.
1) Configure your Category field to be radio.
2) In your CSS include something like this to hide it from the form
#gd_placecategory_row { display: none; }
3) In your footer scripts include this which checks the radio button upon submitting the form:
<script> $("#geodir-wrapper #propertyform").submit(function() { $('#gd_placecategory input[type=radio]').prop("checked", true); }); </script>
-
AuthorPosts