Skip Navigation

[Resolved] Distance search not finding any results

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 14 replies, has 2 voices.

Last updated by Minesh 1 year, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2632209
Screenshot 2023-08-09 at 20.23.13.png

I have a view that uses a query filter with the toolset_maps_distance_center URL parameter. The address search can be seen on this page (top right): hidden link.

On the results page, I can see that the location and distance URL parameters are being passed through but the results aren't showing.

Example results page:

hidden link

Any idea why this might be? I have had this view set up for a couple of years without any problems.

#2632365

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please remove the 2FA from Wordfence so that I can able to login to admin and check whats going wrong with your setup.

#2632385

Hi Minesh,

My apologies. 2FA has now been removed.

Regards,
Charlie

#2632435

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I think I know what is the issue as when you search with address it adds another meta name in the query for the same field.

It seems your site is production site and for further debugging I will require staging site or duplicator copy of your site.

Can you please prepare staging copy of your site or duplicator copy of your site and send me the details.
- https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.

#2632441
#2632459

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I can see the issue, for now, on your production site, you should downgrade the Toolset Maps version to 2.1.1. You can download it from the following URL:
- https://toolset.com/download/toolset-maps/#changelog

#2632475

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You should keep using the Toolset Maps version 2.1.1 for now and we will plan to publish the hotfix release by next week.

#2632479

Okay, great. Thanks. I will go ahead and delete the staging environment for now (it is causing a redirect issue from the production to the staging for some reason) and try version 2.1.1.

How do I instal this version without losing data?

#2632485

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You simply have to navigate to your plugins page in wp-admin area and delete the existing Toolset Maps plugin and then upload the Toolset Maps version 2.1.1 version from plugins page.

You can download the Toolset Maps version 2.1.1 from the following link:
- https://toolset.com/download/toolset-maps/#changelog

#2632559

Minesh, did you change anything on the production site before we moved over to the staging site? I can't log into WordPress now for some reason. The whole production site is trying to redirect to the staging site (which I've already deleted) for some reason. I've checked htaccess and can't find anything in there.

#2632563

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've not changed anything on production and that is why I asked you to send me staging site and on staging site I try to disable the cache plugins that is it.

I did not make any change on your production due to that your site should be having redirection issue.

#2632567

Are you sure you didn't change anything? It seems pretty strange.

When you were logged into the production site earlier today I noticed that the site broke for a while, and pages were just printing arrays and some other stuff. What was it that caused this?

I'm just trying to find the root of the problem because it's not making any sense to me at the moment.

#2632575

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Those code was added to Toolset's "Custom Code" section:
=> https://toolset.com/documentation/programmer-reference/adding-custom-code/using-toolset-to-add-custom-code/

It should be deactivated or commented.

All such custom code is added to the folder "wp-content\toolset-customizations", and you will see a file "toolset-custom-code.php" inside the "toolset-customizations" folder, you can delete/remove it using FTP/SFTP.

#2632577

I can see via ftp that there is a new plugin called pexlechris for database management. Did you add this?

#2632579

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - I added that but it used to work fine without any issues while I was debugging.