Skip Navigation

[Resolved] Distance filter – Location filed not working on Firefox , Safari

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by josephm-10 5 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1329085
Screen Shot 2019-09-02 at 11.23.34 am.png

Search by location filter is not working on firefox, safari or IE but working fine in chrome and use my location button also not passing the value to location field

Link to a page where the issue can be seen: hidden link

#1329101
distance-filter2.JPG

Hello,

Thanks for the details, I have tried the URL you mentioned above in my Firefox + Edge browser, it works fine, see screenshot distance-filter2.JPG

After click "Use my location" button, I can see the longitude and latitude values.

Is this problem resolved?

#1329801
Screen Shot 2019-09-03 at 2.47.19 pm.png

Hi,
Nonetheless, use my locations not working for some browsers even allowed the location.
Addition to that, Unable to search using google suggestions and set a location for the field, it disappears when it selects.

#1330151

I have tested again the URL you mentioned above: the "Use my location" button works fine in my Firefox and Edge browsers, since I don't have a mac device, so did not test with safari browser.

For the problem:
Unable to search using google suggestions and set a location for the field, it disappears when it selects.
I can see the problem in your website.

And I have tested the distance filter in my localhost with a fresh wordpress installation + the latest version of Toolset plugins, it works fine.

Then I log into your website, found these:
You are using old version of Toolset plugins, for example, the latest version of Toolset Maps plugin is 1.8.3, your website is using version 1.7.2.

Please try these in your website:
1) Upgrade all Toolset plugins to the latest version, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1334745
#1334849

The database dump file you provided is not valid, I get this error when running installer:

The expected archive size should be around [7.52MB]. The actual size is currently [3.04MB]. The archive file may not have fully been downloaded to the server.

Please provide a full database duplicator package in below private message.

And according to our support policy, we can handle the questions one by one
Q1) use my location button also not passing the value to location field
As I mentioned above, I have tried it with Firefox and Edge browsers, both browsers works fine, it is different from you mentioned above:

use my locations not working for some browsers even allowed the location.

Which browser are we talking about?
did you see any JS/PHP error in that browser?
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

For example firefox browser, you can test it with new private window:
hidden link

This should be able to avoid other cache/extention problem

Q2) Unable to search using google suggestions and set a location for the field, it disappears when it selects.
This problem is abnormal, please provide the full database duplicator as I mentioned above.

Q3) And I have found a similar situation from toolset forum
https://toolset.com/forums/topic/maps-sddress-field-autocomplete-problems/

The thread you mentioned above is for specific address values: ... Sweden

What address value are you using for search, please provide detail steps to duplicate the same problem, thanks

#1334895

I tried the duplicator again, I can install it in my localhost, test and debug it in my localhost, will update here if there is anything found

#1334903

Q1) I have double tested the URL you mentioned above in my Firefox browser and Edge browser, it works fine:
hidden link

And I have asked our colleague to test it, it works fine in their Chrome/Firefox/Edge browser too.

Q2) I can see the same problem with your duplicator package in my localhost, you have split the custom search form and search result in different place, this is a know issue, see our errata here:
https://toolset.com/errata/toolset-maps-distance-search-location-input-cannot-be-used-when-the-views-is-displayed-in-split-mode/

See the workaround in above errata:

As a workaround, do not use split Views when using Distance Filters.

For example, you can edit the problem page: Search Members New
hidden link

replace the view shortcode from:
[wpv-view name="search-members" view_display="layout" cached="off"]

To:
[wpv-view name="search-members" cached="off"]

And test again.

#1338383

My issue is resolved now. Thank you!