Skip Navigation

[Gelöst] Search filters sometimes result in 414 error

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem: Sometime custom search View queries result in 414 server errors.

Solution: 414 errors indicate your server has constraints on the number of characters that can appear in a URL. Custom search Views produce long URL strings when there are many filters applied, and there's no good way around that. In this case, I was able to produce a URL with 1082 characters, so I recommend asking your host company to increase the maximum URL length to at least 1500 characters.

This support ticket is created vor 6 Jahren, 11 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Christian Cox vor 6 Jahren, 11 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#603880

I am trying to:
Search by filters on a view, and certain combinations result in the following error:

This page isn’t working
If the problem continues, contact the site owner.
HTTP ERROR 414

Link to a page where the issue can be seen:

versteckter Link

Example result with error:

versteckter Link

I expected to see:

Blank results or a message that none are found, but the page still drawing correctly

Instead, I got:

This page isn’t working
If the problem continues, contact the site owner.
HTTP ERROR 414

#604094

Hi, a 414 error indicates that your site's host has implemented a restriction on the number of characters it can accommodate in URLs. Your best bet here is to ask your site's host to increase that URL character count restriction. The current URL has a problem with 349 characters. In order to determine the maximum possible number of characters, I checked every option in the search form and produced a URL like this:

<em><u>versteckter Link</u></em>

That URL includes 1082 characters. I did not include a text search query, so you must account for that too. It's also possible you will need to accommodate more fields as you add them in the future. So I think 1500 might be a good starting point.