Half of categories not showing up according locations on map

This topic contains 15 replies, has 4 voices, and was last updated by  Guust 6 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #439100

    Guillaume Fenollar
    Expired Member
    Post count: 8

    Hello,

    I have a GD application I’m developing on right now, and facing an issue with nearly half of categories that are not requested to the maps API, thus not showing half of locations on the map.
    Figures are :
    126 categories (and handful of them are empty, no half of them)
    39 locations (I know the ratio categories/location sounds odd)
    When I’m listing all categories from the administration, it’s really the 2nd half of categories that are not into account when showing locations on the map.
    First question : Is there a category limit to be shown on the home map set somewhere ?

    Using dev tools on firefox, I can see that admin-ajax.php is only requesting half of categories in the query string, parameter cat_id. Beside that, nothing suspicious or shown in the console.
    I compared one failing catergory with a working one and couldn’t find anything. I added all of them with a proper csv file, nothing fancy.

    I’m using also Geodirectory advance search filters, location manager and marker cluster.
    Can you please help ?
    Please not that I’m working locally so I cannot provide access to the platform, but I’m developer so I can help the best I can to give you hints.

    Thank you,

    Guillaume

    #439114

    Kor
    Moderator
    Post count: 16516

    Hi Guillaume,

    Thanks for your post. Unfortunately, it’s hard to tell without inspecting your Website. Could you upload your Website to a staging URL and share your WP admin access here in private reply so that we could check your GD setup?

    Thanks!

    #439122

    Guillaume Fenollar
    Expired Member
    Post count: 8
    This reply has been marked as private.
    #439150

    Guust
    Moderator
    Post count: 29970

    I think they are all there, but your icons are not showing.
    Please review https://wpgeodirectory.com/docs/useful-plugins/#bsr

    Thanks

    #439158

    Alex Rollin
    Moderator
    Post count: 27815

    Also of note, the listing is only shown under the default category.

    #439176

    Guillaume Fenollar
    Expired Member
    Post count: 8

    Hello, and thank you for having a look.
    I think it’s a matter of GD configuration with NAT that made you not see the icons, but I can assure you they’re all good.
    I agree also that locations on the map only only shown under the default category, and that’s why I think the problem is about categories not being loaded by the map.
    For example in the overlay search box on the map, you can type “DND” and there is no result.
    If I go then in the “Ressac” place, I can see that the “Autres DND” category is place’s default category but that doesn’t make it appear on the home map.

    It really looks like the home page is only able to list ~60 categories, and thus showing only related locations that are having these categories. I have half of my locations that are falling _only_ in the others ~60 categories and that’s why they are not appearing.

    I’m sure there’s an issue here because if you look at the json response from admin-ajax.php, you can see only 19 locations being returned (see screenshot).

    I can find a way to put the GD instance online if you need more time investigating on this issue.

    Thanks again,

    Guillaume

    #439181

    Guust
    Moderator
    Post count: 29970

    Have a look at Places > Places categories: see how the icons are not there?
    Have a look at the map and click anywhere: see how a infowindow opens although there is no icon?
    Is there a listing called DND: the map search box is only for titles of listings.

    Your site does not load for the moment, but let us know if ready for another look.

    Thanks

    #439191

    Guillaume Fenollar
    Expired Member
    Post count: 8
    This reply has been marked as private.
    #439198

    Guust
    Moderator
    Post count: 29970

    You will see the images probably because they are loaded from your machine.
    For example http:/localhost/wp-content/uploads/2018/07/pin-vert.png

    But no-one else sees them. Please review https://wpgeodirectory.com/docs/useful-plugins/#bsr and change all references to http:/localhost/ to your new URL.

    Then we can have another look.

    Thanks

    #439201

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #439230

    Guillaume Fenollar
    Expired Member
    Post count: 8

    Hello,

    You were right, I fixed the icons domain name and you can see them all now.
    Problem remains though, I can only see 19 locations on my home map. It’s not an issue in the places or categories because they are all showing right, especially in the page you give me in the private answer. Everything work perfectly on the website except the home page map which is hiding any location that is not part of the first ~60 categories listed in the “Place Categories” page.

    For instances, all places with “Mont-Dore” in the name don’t show up. It’s a small city, east of Noumea (the capital with most of pins). But if you search “Mont-Dore”, you’ll see that everything’s fine on the search small map which can show them both.

    Thank you for your help

    Guillaume

    #439236

    Guust
    Moderator
    Post count: 29970

    1. All listings need to be at least in one category, some of your listings do not have a category.

    2. Some of your listings had invalid data. I am guessing because of a CVS import?

    3. Each listing must have an author.

    Please check after adding categories to all listings. Let us know.

    #439243

    Guillaume Fenollar
    Expired Member
    Post count: 8

    The site is now looking good with 35 locations returned by the call to admin-ajax.php. I can see them all on the map now, and it’s especially easy to see thanks to the Marker Cluster extension.

    Have you done something in the configuration ? I see that almost every location still don’t have any Author, but they look well, so it’s not related. The online site works, but my local version is still failing with only 19 locations listed, instead of 35. I’d like to know what have been done on your side to fix the issue so I can apply it in my dev version.

    Thanks,

    Guillaume

    #439244

    Guust
    Moderator
    Post count: 29970

    I just went in to the first listing and re-saved it. That often points out any mistakes if the data has been imported using CSV. I was checking really for incomplete addresses, because that will mean they cannot show on the location maps, but that was fine. As soon I saved and checked the location map, they were all there, so that is where I left it.
    I am not sure what the problem was, because I did not get an error when re-saving the listing.
    But it somehow must have fixed something in the database that was tripping things up.

    #439275

    Guillaume Fenollar
    Expired Member
    Post count: 8

    Hello,

    Weird. I tried to do the same on a invalid database, to see if I can reproduce the fix, but it didn’t work. Finally, I exported the categories & places from the database you’ve fixed and everything is fine with that export now.
    Pretty frustrating to not being able to know what caused that exactly but the most important is that it’s fixed 🙂

    Thanks,

    Guillaume

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