File name too long: Cannot map (encoded query)
Hi, I'm using EE3.5.15 and Low Search 5.2.0, and I receive that error only if I choose to encode the query. Tried to modify LimitRequestLine directive into apache but nothing changed.
In effect, I have a lot of parameters in search, but if I do not encode the query all works fine. Query generated is 1087 chars.
Can you help me?
Thanks.
Diego Burgio
Oltremedia s.a.s.
Replies
Low 14 Jun 2018 16:28
Looks like a server setting, as you deduced, and a 1087 char query seems fine with the default http://httpd.apache.org/docs/2.2/mod/...
What is the encoded query that's generated? You could try and move some of those params to the Results tag itself, if they do not need to be dynamic.
Diego - Oltremedia s.a.s. 15 Jun 2018 12:32
Hi,
what do you intend for "dynamic"? I tried to move all params to result tag and now it's working also encrypted. My search is very simple, I've a form with 2 selects and some (a lot) of checkboxes and radiobutton to be posted.
Thanks,
Diego Burgio
Oltremedia s.a.s.
Low 15 Jun 2018 13:15
Dynamic is any parameter you can alter in the form.
If you share your form (and an example encoded query), I can take a look at what might be moved and what not. You can use http://pastebin.com/ to share large chunks of code.
Diego - Oltremedia s.a.s. 15 Jun 2018 16:11
Thanks, here's my form
https://pastebin.com/Sj7S6VJR
My result tag is here: https://pastebin.com/QnX7GwMS
I still have some problems if I check a lot of options.
Thanks,
Diego Burgio
Oltremedia s.a.s.
Low 15 Jun 2018 18:22
Looks like there's no bulletproof way of avoiding the issue with just the form, so it's a server issue. As mentioned, possibly a SUHOSIN setting or something similar. In any case, this isn't something LS can solve itself; usually the server should be fine with that kind of URI. You'd have to use GET vars (non-encoded queries) to solve the issue if you can't tweak your server settings.
Diego - Oltremedia s.a.s. 18 Jun 2018 12:58
Thanks! :)