Closed (fixed)
Project:
Time Zone Field
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2018 at 21:27 UTC
Updated:
18 Aug 2021 at 18:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
commonpike commented.. and its expensive, too. $5 per 1000 requests.
Comment #3
mfbComment #5
mfbComment #6
mfbI gave this a minimal fix as I do not use this module.
Please feel free to contribute further improvements / bug fixes :)
Comment #8
commonpike commentedThanks for the patch - I see it is even committed.
Nevertheless
Where would anyone set that variable ? And how would people know
it has to be set, especially since there is no error in the watchdog
Would it make sense to have a settings page to enter your api key in ?
With a cog wheel appearing in the modules section ?
Comment #9
mfb@commonpike yes that's still needed. You can add a patch in this issue and reopen it, or create a new issue.
There should be an error logged in watchdog. Are you not seeing an error?
Comment #10
commonpike commentedYes, the error appears in the watchdog.
It's a bit uninformative. If you add $result->data, that looks nice
will throw
Exception: Google API returned bad status. Status: REQUEST_DENIED { "error_message" : "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started", "results" : [], "status" : "REQUEST_DENIED" } in geocoder_google() (line 123 of /xxxx/sites/all/modules/geocoder/plugins/geocoder_handler/google.inc).Comment #11
mfb@commonpike I think you might be commenting on the wrong issue queue? This issue is re: tzfield_geofield module, not geocoder module.
Hopefully tzfield_geofield is correctly logging the error message; the relevant code is: