Skip Navigation

[Resolved] Getting search form to work using custom taxonomy in a view (Not Resolved)

This support ticket is created 2 years, 6 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.

This topic contains 2 replies, has 2 voices.

Last updated by Jeff Coen 2 years, 6 months ago.

Author
Posts
#2509927

Tell us what you are trying to do?
This is a continuation of this ticket: https://toolset.com/forums/topic/getting-search-form-to-work-using-custom-taxonomy-in-a-view/

Is there any documentation that you are following?
I've been trying to get a taxonomy search with a drop down menu listing all taxonomies / categories for a custom post type. No matter what I do, I cannot save the search form due to an error. I followed Waqar's advice after he downloaded the site and said that the database needed to be optimized. I did that, but the problem lingers.

This is the original ticket:
https://toolset.com/forums/topic/getting-search-form-to-work-using-custom-taxonomy-in-a-view/

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

#2510419

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2022-12-06 at 14.38.24.png

When you try to save the View after adding the filter to the Search and Pagination section it submits an ajax request with the data, and normally gets a JSON response.

But in your case (I checked on your site) the request is being blocked by the server, which returns a 406 HTTP status.

A quick Google shows that is usually caused by the Mod Security server settings, and that does appear to be the case on your site (see screenshot).

I would encourage you to contact your host who should be able to determine why such requests are being rejected from their logs. Were you to migrate your site to a different server I expect you would no longer see the issue, and it may require some tweaks to the Mod Security settings on the server that your host can help with.

#2510677

That was it! The 406 error. InMotion just fixed it, so I think at the very least, this is finally resolved.

One potential other issue, but I'll set up another ticket for that.