Country is not filled anymore when editing places

This topic contains 15 replies, has 4 voices, and was last updated by  Stiofan O’Connor 9 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #68201

    flexws
    Buyer
    Post count: 11

    When I create a new entry in places (using MultiLocations) I can enter an address and the country/region/city/postal code will be filled automaticly in the selectboxes. This works great.

    After I save the item and get back to it later to edit it, the country is shown empty, and the selectbox value is “Select country”.

    For every change we need to redefine the address, could you check this out?
    This is very annoying.

    We are using GeoDirectory 1.5.6 and Location Manager 1.4.3.
    We have localized the country names, but I hope that should not be an issue?

    #68245

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    we will need a link and admin credentials to check where the problem could be.

    If you set the reply as private, only our staff will be able to read them.

    Let us know,

    Thanks

    #68336

    flexws
    Buyer
    Post count: 11
    This reply has been marked as private.
    #69286

    flexws
    Buyer
    Post count: 11
    This reply has been marked as private.
    #69398

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    there is a bit of a mess in your locations.

    1st a biggest problem is that you have a Country “All”, that shouldn’t be there and a lot of your listings are assigned to it.

    For almost every city you have 3 locations:

    Aalsmeerderbrug, Noord-Holland, all
    Aalsmeerderbrug, Noord-Holland, Nederland
    Aalsmeerderbrug, Noord-Holland, Nederland

    Make sure to merge wrong locations with the correct one and to leave only one. Once you’ll have fixed all this the country all should disappear from everywhere and the system should start working correctly.

    Let us know,

    Thanks

    #69690

    flexws
    Buyer
    Post count: 11

    Thanks, that works!

    Any idea how it happened, or how we can avoid it?

    [edit]
    If country is not filled (select country option), it will get to “all”.
    Country was required before and I will change it back to avoid the all-country.

    #69696

    flexws
    Buyer
    Post count: 11

    For old places it works to merge the locations.
    If I create a new place, it see just 1 new record in the multilocations, if I edit it in the multilocations plugin I selects “Nederland”, but if I edit the place it doesn’t.

    Am I still doing something wrong?

    #69704

    Guust
    Moderator
    Post count: 29970

    You still have 2 Nederlanden, and “all” as a country in the locations.

    /wp-admin/admin.php?page=geodirectory&tab=managelocation_fields&subtab=geodir_location_manager&s&country=all

    /wp-admin/admin.php?page=geodirectory&tab=managelocation_fields&subtab=geodir_location_translate

    #69721

    flexws
    Buyer
    Post count: 11

    Ok, every Dutch place is Nederland now.
    And when I start to edit a location Nederland is selected — good!
    But when I save the place, a new location with Netherlands is added.
    As a result of that also “all” comes in, since there are more Nederlanden.
    So it starts all over?

    #69750

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    you still have the country netherland and all in your database in the Table: wp_geodir_countries

    See image attached.

    Please delete the last 2 rows (id 278 and 279) of that table via phpmyadmin.

    That should fix it once and for all.

    Let us know how you went,

    Thanks

    #69897

    flexws
    Buyer
    Post count: 11

    Hi,

    Thank you for your support.
    I have deleted the two keys.

    Places are showing “Nederland” correct the first time now, but if a place gets saved again the country combo switches to “Select country” again.

    If I select “Nederland” manually and save it, it is not saved, but gets back to “Select country” again.

    Am I missing something?

    #70019

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Three was a bug with function geodir_get_limited_country_dl() setting the correct country if translated, i have fixed this now and it will be in the next version.

    Thanks,

    Stiofan

    #111056

    flexws
    Buyer
    Post count: 11

    Thanks for looking into it!

    Could I get the changed function already?

    #111057

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes i have applied the fix to your site, the new version also includes the fix.

    Thanks,

    Stiofan

    #111059

    flexws
    Buyer
    Post count: 11

    Thank you.

    I think you need the same fix on GeoDirectory -> MultiLocations -> Add/Edit location 🙂

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount