How Does Shared Location work?

This topic contains 10 replies, has 3 voices, and was last updated by  Paolo 9 years, 12 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #21215

    thebirdiemachine
    Expired Member
    Post count: 246

    Hi,

    I was wondering if I could get an explanation how Shared Location works. I have read this thread:

    https://wpgeodirectory.com/support/topic/current-location/

    The problem that I am having – and my test users are having the same problem and complaints – is that the location switcher keeps reverting back to a location (nearby city) where there are no listings. We try to change the location using the Location Switcher but it still keep jumping back to this city where there are no listings? This makes no sense… is this how the Location Sharing works or is it malfunctioning?

    This action seems incompatible with the Location Switcher and renders the Location Switcher useless as these two things do not seem to be able to function independently unless I am missing something or doing something wrong.

    Hoping someone can explain this so I can fix things on my end.

    Thanks & Cheers
    Stacey

    #21220

    Guust
    Moderator
    Post count: 29970

    The share locator asks whether the visitor wants to share their location.
    If they say yes, the database will check the closest location to them and serve that page.
    Once they told their browser they are happy to be taken to their closest location, the browser will remember that and honour that request every time (unless cache etc is cleared).
    If there are no listings in that location, it cannot show any. Best practice is to add locations as you add listings, that way you do not have empty pages.

    If then changing using the location switcher, they should go to that page.
    What you are describing is not normal; simply if it works different as on http://wpgeo.directory/ then there is something else wrong.

    Post your URL if you like, then we can have a look.

    #21228

    thebirdiemachine
    Expired Member
    Post count: 246

    Hi Guust,

    Here is my URL:

    http://www.muttmaps.com

    Something is wrong because it is happening to all my test users not just me. Plus I for sure I never got a request to share my location – I would have remembered that. But from what you have said even if I did get that request and said yes I should still be able to use the location switcher which when I try at first it tries to load the page then reloads back to the shared location page, so I think something is wrong for sure.

    When I test on my mobile the same thing happens – it is very frustrating for sure lol.

    Let me know what you think or what your thoughts are on this.

    Thanks
    Stacey

    #21229

    Guust
    Moderator
    Post count: 29970

    Here is how you clear your shared location:
    Firefox: https://www.mozilla.org/en-US/firefox/geolocation/ [6th question]
    Chrome: https://support.google.com/chrome/answer/142065?hl=en
    IE: http://windows.microsoft.com/en-au/internet-explorer/manage-delete-browsing-history-internet-explorer#ie=ie-11

    You can also disable the share location plugin.
    From my testing your site works as expected regarding locations, Chicago must be my closest location.
    The problem is I think that your map and/or pages are being cached, so it looks like you are not taken anywhere else because the map does not change.
    And depending where you navigated to, there is some redirecting going on.

    Disable your plugins one by one, start with the ones that might be caching like wordfence.
    Delete your saved location settings too.

    Let us know if you have any luck, or we will have a closer look.

    #21261

    thebirdiemachine
    Expired Member
    Post count: 246

    The hard part is that sometimes I have this problem and sometimes I do not – sometimes it is just on mobile, sometimes just on desktop , sometimes both.

    Could my hosting have anything to do with this?

    #21292

    Paolo
    Site Admin
    Post count: 31206

    I would start following Guust’s suggestion than if any of those plugins isn’t the culprit ask to your hosting provider for support.

    I tested it too and it works as expected for me too, except the map being cached.

    Thanks

    #21326

    thebirdiemachine
    Expired Member
    Post count: 246

    OK,

    So I deactivated Wordfence first (as instructed by @guust) refreshed my webpage and BOOM! The maps takes me to places based on the Location in the Location Switcher.

    So I guess that means that Wordfence is causing that problem. I want to speak with the people at WordFence but not being really technical what do I say to them…”the plugin is caching things it shouldn’t?” What would be more specific?

    If it is OK with you guys can I post a topic to see if anyone else has had this problem to see if they found a way to fix it?

    I thought I read that this plugin was compatible somewhere on here so I am a little surprised.

    Thanks for you help & advice!
    Stacey

    #21332

    thebirdiemachine
    Expired Member
    Post count: 246

    As an interesting note, I went into the Wordfence settings, cache was disabled and I even checked the cache stats- totally empty.

    BTW, since I might have to get rid of Wordfence and recommendations for a replacement???

    #21334

    Paolo
    Site Admin
    Post count: 31206

    1 question, why did you install wordfence?

    Cause I have no idea why people are even using it…

    #21336

    thebirdiemachine
    Expired Member
    Post count: 246

    A lot of people said it was a good product for security LOL! I see you’re not a fan. I have no loyalty to WordFence.

    May you could recommend a real security plugin 😉

    #21339

    Paolo
    Site Admin
    Post count: 31206

    There is no need for security plugins IMHO

    Breaking into a server requires uncommon technical skills, why would ever , someone with such tech skills, break into your site in the 1st place?

    Malware infections are always due to an infected computer with FTP credentials saved in it.

    A daily back up of the database and 1 backup of your files every time you change anything is more then enough to revert any problem in case google flags it for you.

    Never save your FTP password or wp admin password in ftp client or browser, keep them safe and as complicated as possible.

    If you suspect they are no longer secure, change them.

    This will do more for you than that plugin will ever do, without wasting any resource of your server…

    Thx

Viewing 11 posts - 1 through 11 (of 11 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