Derek Abernethy
Forum Replies Created
-
AuthorPosts
-
Thanks guys
Ooops, I hadn’t added the field to the Tabs so that’s why it wasn’t showing. Thanks for getting back to me though.
Thanks for the quick reply. The box to disable the HTML editor isn’t ticked, so it wasn’t that. I’ve added an additional teaxtarea field and set it to admin only edit. I’ve tried adding shortcode via the backend but still nothings showing up. I’ve even tried just adding text to the box and seeing if that appears… but again nothing.
OK, I’ve generated a new Google Maps API key from the GeoDirectory settings and everything seems to be working OK now. Thanks for your help – no doubt I’ll have some other question shortly 😂
OK you’ve lost me now. I have 2 API keys. The first key is HTTP referrers restricted to *.polishedclean.co.uk and has an Maps JavaScript API API restriction.
The second key has no HTTP referrers restriction but has a Geocoding API restriction.
Are you asking me to setup another API key and if so, what is it for i.e. Google Maps or Google Geocoding?
Would that be the reason that although countries are loading, regions & cities aren’t?
I can see the list of countries now, which is a step in the right direction but when I’ve tried adding a listing and when I click on ‘Set Address On Map’ I’m getting the following error message “Geocode was not successful for the following reason: REQUEST_DENIED” – which may, or may not, be down to the restrictions that I’m not sure about, i.e. which restrictions should be on which key?
When I’m typing in an address in the listing form I also get the following message “This page can’t load Google Maps correctly.”
Just as a quick follow up to my last reply, I’ve tried out various combinations of restrictions on both keys and at no point has my original problem of not being able to select a country due to “No matches found” changed.
I’ve read the article. When I click ‘Generate API Key’ for the Google Maps API KEY I (eventually) get the API I originally setup. When I click ‘Generate API Key’ for the Google Geocoding API Key it gives me the same key. So I setup a new API Key on the Google Cloud platform but I’m not sure what I’m restricting.
The article says “Key must not be restricted with HTTP referrer rules”, which is an Application Restriction. Does this relate to the Google Geocoding API Key and if it does, should there be any restrictions on this key at all, such as API restrictions?
The article then says “Main key should be restricted, so, the second key should be different from the first”. In what way should the first key be restricted? Should the first key have ‘HTTP referrer rules’ or some other application restriction, or should it have an API restriction, such as Geocoding API.
I’ve tried swapping the 2 keys about. Doing it one way loads the map (but doesn’t allow me to set a country in the settings) and doing it the other way doesn’t load the map at all, bringing up “Oops! Something went wrong. This page didn’t load Google Maps correctly. See the JavaScript console for technical details.”
Just to clarify, I have 2 API keys setup on the Google Cloud Platform but am unsure what restrictions have to be on which key.
Still can’t add listings yet guys as no countries are available to select… 26 hours and counting 😉
Thanks 😊
This reply has been marked as private.That doesn’t work. When I add London as a city, Greater London as a region all I get when I click on country is “No matches found”. Clicking ‘Set address on map’ moves the icon to London but doesn’t help with the ‘country’ situation. When I click ‘Save location’ it just highlights the ‘Country’ tab as empty. I’ll send you a private reply with login details.
-
AuthorPosts