Skip Navigation

[Resolved] Proximity search inconsistently pulling results based on Zip code search

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 6 replies, has 2 voices.

Last updated by Minesh 1 month ago.

Assisted by: Minesh.

Author
Posts
#2777738

I am trying to: See a list of all resources in the DB searching by a zipcode

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

I expected to see:
A list of resources in Cleveland, OH

Instead, I got:
No results, and the map centered on 0-0 lat lng

Our resources search page had been working where you could enter a city or a zip code and this would pull up nearby results.
Recently an issue was reported where entering SOME zipcodes and selecting the entry from the dropdown returns no results. Searching for the city and choosing from the dropdown DOES return nearby results. Example:
Go to the above page and in the left search, type Cleveland. Select CLEVELAND, OH US from the dropdown. Note that there are several results and the map is centered on Cleveland.

Now clear the page and type 44101 in the search box, selecting 44101 Cleveland OH from the dropdown. Press submit and see no local results and the map centered on 0-0

All recent versions of Toolset plugins are installed.

Some PHP warnings appear in the logs. Ex:

2024/10/11 21:57:19 [error] 97010#97010: *408341 FastCGI sent in stderr: "PHP message: PHP Warning: is_writable(): open_basedir restriction in effect. File(/www/standingwithyouorg_163/) is not within the allowed path(s): (/www/standingwithyouorg_163/public:/www/standingwithyouorg_163/mysqleditor:/www/standingwithyouorg_163/web:/www/standingwithyouorg_163/deploy:/www/standingwithyouorg_163/deployment:/www/standingwithyouorg_163/deployments:/usr/share:/tmp) in /www/standingwithyouorg_163/public/wp-content/plugins/types/vendor/toolset/types/embedded/views/image.php on line 390" while reading response header from upstream, client: 2601:1c0:8500:2390:3ce5:26e:5fa8:49d1, server: hidden link, request: "POST /wp-admin/admin-ajax.php HTTP/2.0", upstream: "hidden link:", host: "www.standingwithyou.org:13990", referrer: "hidden link"

I can provide access if needed, but hoping it's not needed.

I think this should be a bug, but trying to submit as bug isn't working on your system

#2777798

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Yes, can you please send me admin access details and let me check if I spot anything that is the cause of the issue.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

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

#2778386

I am working on getting you access to our staging environment. I should have this worked out Monday or Tuesday.

#2778834

Minesh
Supporter

Languages: English (English )

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

Ok fine - please get back to me when you have access details with all required details.

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

#2779171

Minesh
Supporter

Languages: English (English )

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

When I checked the Maps settings I see the Google Map API registered is not working and I see the following error when I click on the "Check API" button:
- hidden link

REQUEST_DENIED - API keys with referer restrictions cannot be used with this API.

And when I checked with my google map unrestricted API key that works and navigated to the section "Cached data" and clicked on the button "Check for missing cache entries" and when I search with the same address you mentioned:

Now clear the page and type 44101 in the search box, selecting 44101 Cleveland OH from the dropdown. Press submit and see no local results and the map centered on 0-0

I can see the result as expected and see map with the markers.

#2779377

The plugin doesn't work with referrer restrictions? Thats... odd. Can you explain why this is? It feels very insecure.

#2779602

Minesh
Supporter

Languages: English (English )

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

As you can see with our Doc about this known issue:
- https://toolset.com/course-lesson/creating-a-maps-api-key/#known-issues

So, you should try to register both public and private google Map API keys. As shown with the following Doc you will have two Google Map API key boxes available one is public and another is used for server side requests.
- https://toolset.com/course-lesson/creating-a-maps-api-key/#entering-the-maps-api-keys