How Does Shared Location work?
This topic contains 10 replies, has 3 voices, and was last updated by Paolo 10 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: location switcher, Shared Location
-
AuthorPosts
-
November 12, 2014 at 12:54 am #21215
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
StaceyNovember 12, 2014 at 1:06 am #21220The 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.
November 12, 2014 at 2:03 am #21228Hi Guust,
Here is my URL:
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
StaceyNovember 12, 2014 at 2:34 am #21229Here 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-11You 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.
November 12, 2014 at 12:14 pm #21261The 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?
November 12, 2014 at 4:59 pm #21292I 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
November 12, 2014 at 7:26 pm #21326OK,
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!
StaceyNovember 12, 2014 at 7:42 pm #21332As 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???
November 12, 2014 at 7:44 pm #213341 question, why did you install wordfence?
Cause I have no idea why people are even using it…
November 12, 2014 at 7:53 pm #21336A 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 😉
November 12, 2014 at 8:14 pm #21339There 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket