Support » Plugin: Business Directory Plugin | GeoDirectory » Bug report: JS Error when OpenStreetMap API is active

  • Resolved woorooo

    (@woorooo)


    Hey guys,

    A quick bug report when OpenStreetMap API is used.

    When you enter in the location search field any city without choosing any specific location from the suggested options and hit enter (or press search button) nothing happens.

    Inspector shows a jquery.min.js error net::ERR_NAME_NOT_RESOLVED

    Tested it on 2 different website running different versions of GD and different themes.

    Please let me know if the same happens on your installs not just mine.

    Thank you,

    Roman.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello @woorooo,

    I checked on several test sites with OpenStreetMap enabled.
    but couldn’t reproduce the case.

    are you sure, you do not have any other js error on that page that may be breaking the js?

    Regards
    Naveen Giri

    Thread Starter woorooo

    (@woorooo)

    Hi @1naveengiri,
    Just tested it on a clean install with the default wp theme, the same issue persists, when Openstreetmaps only is used it throws back the js error, no optimization plugins, clean geodirectory and wp install. You can check it yourself here https://wordpress-146285-1764482.cloudwaysapps.com/index.php/location/

    Sorry, but still can’t reproduce the js error.
    Inspector shows a jquery.min.js error net::ERR_NAME_NOT_RESOLVED

    Step I followed.

    – Added city name “Delhi” in the near field of the search form.
    – Hit the search button
    – checked console log

    I see no error and the page gets redirected to the search result page without any issue.

    could you please clear your browser cache and check.
    and also send us the following details, it will help us to track it.

    – which Browser you are using?
    – screencast video to reproduce the issue

    Thread Starter woorooo

    (@woorooo)

    Edge, Chrome & Firefox all have the same behavior.

    Can it be user location based?

    Here is the link to the video I just recorded https://wordpress-146285-1764482.cloudwaysapps.com/wp-content/uploads/2021/02/2021-02-16-15-52-01.mkv

    Plugin Author Stiofan

    (@stiofansisland)

    Hi @woorooo,

    Thanks very much for the video, a few of us have tested this and can’t replicate it so my guess is that either:
    1. Your IP has somehow been blocked by OSM
    2. Your ISP has for some reason blocked the service

    What do you see if you visit the URL direct? https://nominatim.openstreetmap.org/search?format=json&addressdetails=1&limit=1&accept-language=en&q=Dheli

    Thanks,

    Stiofan

    Thread Starter woorooo

    (@woorooo)

    Hi @stiofansisland,

    The link you provided just doesn’t load on my end. I tried loading it via vpn and it worked fine.

    However all the maps load fine and search function via search suggestions work as usually, loads no problem without any vpn. No idea what’s wrong.

    Could it be some temporary behavior? Or should I write to OSM to see if they indeed blocked my ip?

    Thanks.

    Thread Starter woorooo

    (@woorooo)

    I’ve found a thread regarding this problem here:
    https://help.openstreetmap.org/questions/59867/ip-blocked

    the guy pointed to this usage policy: https://operations.osmfoundation.org/policies/nominatim/

    Apparently this Nominatim service is good for low usage only, though I cannot believe they blocked my IP, since I can’t say that I was using it more than a few times while working on the site 🙂

    Plugin Author Stiofan

    (@stiofansisland)

    The service to geocode addresses uses a different URL than the actual map tiles.
    From time to time they do have issues, i ran a test and see there is problems in Estonia just now, i am not sure where in the world you are.

    Try loading the URL on your mobile while NOT connected to WIFI, if it loads then it may be your service provider or your IP blocked, if it does not work on mobile it may be a country thing.

    With some internet providers just restarting your router will give you a new IP, it might be that your current shared IP was used in past by someone else and got blocked.

    Let me know how you get on.

    Thanks,

    Stiofan

    Plugin Author Stiofan

    (@stiofansisland)

    (just seen your last reply)
    It might have been abused by someone else in the past if you have a dynamic IP from your service provider.

    Stiofan

    Thread Starter woorooo

    (@woorooo)

    Thank you @stiofansisland
    I tried accessing from mobile and it worked, so I guess it’s not a country wide block, only my IP, I’ll just reset the router and hopefully the problem will be gone.

    Plugin Author Stiofan

    (@stiofansisland)

    Finger crossed a router restart fixes it, let me know 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Bug report: JS Error when OpenStreetMap API is active’ is closed to new replies.