I am using EE's Simple Search here to search the Solspace default channel Calendar:Events.

Here is the code

<div class="calendar-search">
    <h3>Search Events</h3>
    <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100"> <input type="submit" value="Submit" class="search-btn">

For most search items this works fine and delivers predictable results. However, there are a couple of things that don't work and I haven't been able to find solutions to the following:

  1. No results for items I know are in the entries. For example, there is an event with the title of Lego Club, but if I do a search for Lego, I get a blank results page.

  2. The No Results page is not being used for items that are not in the channel. For example, if I do a search for Nikon, instead of going to the designated no_result_page it goes to a default EE page that displays the following error:

The action you have requested is invalid.

I am not sure why these errors are occurring or how to fix them, but would appreciate any insights.


1 Answer 1


Sounds like your #2 is related to EE's "Secure Mode" with form submissions. You can read more about it here: https://ellislab.com/blog/entry/putting-the-secure-in-secure-mode-forms

Try adding this line of code immediately above your "keywords" input field.

<input type="hidden" name="XID" value="{XID_HASH}">

This may also fix your #1 issue but I can't say for sure. I'd imagine that without the {XID_HASH} code in place, none of your searches would work but since lots are working I'm a little perplexed. Give this a try.

  • Thanks for looking into this. I applied the line of code you recommended and I am still getting the same funny results: blank results page and no redirect to the no-results page. Any other ideas?
    – forrest
    Apr 20, 2016 at 20:07
  • Try disabling "Secure Forms" in your configure file temporarily. I think the code is: config['secure_forms'] = "n";
    – Anna_MediaGirl
    Apr 21, 2016 at 3:50
  • @fmz if adding that code fixes your issue it means it is related to secure forms and you'll need to try tracking things backwards.
    – Anna_MediaGirl
    Apr 21, 2016 at 3:52
  • Alas, it doesn't make any difference. I appreciate your efforts, but I am going to have to keep looking.
    – forrest
    Apr 21, 2016 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.