"action you have requested is invalid" error when searching
Hi --
I'm getting the following error when attempting to perform Low Searches:
"The following errors were encountered
The action you have requested is invalid."
When I look in the search log in the control panel, I see the following listed in the "parameters" column for each search:
people-submit_x: 0
people-submit_y: 0
My search form code is:
{exp:low_search:form form_id="peopleSearchForm"}
<input type="search" name="keywords" id="keywords" />
<input type="image" src="/images/interface/btn_search.png" name="people-submit" id="people-submit" alt="Search People" />
{/exp:low_search:form}
Any idea why my searches might be failing?
Thanks.
Replies
Carl 24 Jul 2014 05:03
Forgot to include in case any of this is helpful:
site is running EE 2.8.1, Low Search is v3.1.6
server is Apache/2.4.7 (Ubuntu)
PHP version 5.5.9-1ubuntu4
MySQL version 5.5.35
Low 24 Jul 2014 07:02
You can get rid of the "people-submit_x" params by removing the name="" attribute from the input type="image.
As for the error... What is the URL that generates this error? And can you list all the rows in the exp_actions table that mention Low Search here?
Carl 24 Jul 2014 09:39
The url generating the error looks like:
http://domain.com/search/results/eyJr...
For your second question, not sure this is the info you're looking for, but in exp_actions I see three rows with a class of Low_search: catch_search, build_index, and save_search
and one row with a class of Low_search_mcp: build_index
Low 24 Jul 2014 09:45
Hmm, odd. The error message is triggered
Carl 24 Jul 2014 09:53
Your tip regarding something else in the results page was it! I had some funky code in there and didn't realize it. Thank you for pointing me in the right direction!
I have another question. If I search for "jennifer" I get results. But if I search for just "jenn", I get no results (without quotes in both cases).
I updated my exp:low_search:form tag with a parameter of loose_ends="both", but partial names still don't return any results. Did I set loose ends set incorrectly?
Low 24 Jul 2014 10:00
The Form tag doesn't take any filter parameters. Instead, set the parameter on the Results tag, or use a hidden input field in the Form.
Note that I wouldn't recommend using loose_ends="both" for performance reasons. If you must use loose_ends, "right" will be the best value to use.
Carl 24 Jul 2014 10:07
Great, thank you. That worked! Really appreciate the quick replies!!