Can't add locations

This topic contains 20 replies, has 5 voices, and was last updated by  leoleo 4 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #533438

    Derek Abernethy
    Expired Member
    Post count: 17

    I’m unable to add any locations as when I click on ‘Country’ it says “No matches found”. I’ve seen from another post that it may be due to a table in the database but this is beyond my level. I’ve tried uninstalling (including removing the data) but when I reinstall the plugin & run the setup wizard to set the default UK location, nothing changes.

    I’ve tried enabling default city, region & country to remove those boxes from the ‘Add Listing’ form but when I enter a UK address it says “Please choose any address of the (United States) country only”. This has made the plugin (which I’ve bought membership for) completely unusable as I’m totally unable to add listings from either the front-end or the back-end.

    #533459

    Kor
    Moderator
    Post count: 16516

    Hi Derek,

    Thanks for your post. Could you please share your website WP admin access here in private reply so that we could check it out for you ?

    #533466

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    before you go further try:

    1. Remove Locations restrictions – GD – Settings – Locations – Allow multicountry, multiregion, multicity
    2. Set default location – GD – Settings – Locations – Cities – Choose a location with all parts. If there isn’t a full location, add one, maybe London, by dragging the map icon to London, then click save.
    3. Add a new listing and make sure you can add it anywhere.

    Once you have done these things then you can go back and restrict country to UK only if you need to.

    #533555

    Derek Abernethy
    Expired Member
    Post count: 17

    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.

    #533559

    Derek Abernethy
    Expired Member
    Post count: 17
    This reply has been marked as private.
    #533714

    Derek Abernethy
    Expired Member
    Post count: 17

    Still can’t add listings yet guys as no countries are available to select… 26 hours and counting 😉

    #533726

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #533740

    Derek Abernethy
    Expired Member
    Post count: 17

    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.

    #533748

    Derek Abernethy
    Expired Member
    Post count: 17

    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.

    #533753

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #533760

    Derek Abernethy
    Expired Member
    Post count: 17

    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.”

    #533761

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #533764

    Derek Abernethy
    Expired Member
    Post count: 17

    Would that be the reason that although countries are loading, regions & cities aren’t?

    #533769

    Kor
    Moderator
    Post count: 16516

    Hi Derek,

    Thanks for your reply. Could you please recreate the Google API Key. Without a working API key, it won’t allow you to add a listing.

    #533771

    Derek Abernethy
    Expired Member
    Post count: 17

    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?

Viewing 15 posts - 1 through 15 (of 21 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket