We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Simple Search - Confusing Errors and Results

Development and Programming

fanderson's avatar
fanderson
883 posts
9 years ago
fanderson's avatar fanderson

EE 2.8.1 Solspace Calendar 1.8.13

I am using Simple Search on this page to search calendar events. For the most part it works correctly, but I have run into a couple of odd results that require greater attention.

The code:

<div class="calendar-search">
 <h3>Search Events</h3>
 {exp:search:simple_form 
  channel="calendar_events" 
  search_in="everywhere"
  where="any"
  show_future_entries="yes" 
  show_expired="yes"
  results="10" 
  result_page="calendar/search-results" 
  no_result_page="calendar/no-results"
  }
  <input type="hidden" name="XID" value="{XID_HASH}">
    <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100"> <input type="submit" value="Submit" class="search-btn">
{/exp:search:simple_form}
</div>

Issue 1 Some search bring back an empty results page. There is an event called Lego Club, but if you search for Lego, the results page is empty, with no events. The event ran from March 9 to March 26.

Issue 2 Instead of getting the no results page when I search for something that is not in the channel entries I get the following error:

The action you have requested is invalid.

I tried adding the following to the config.php file but it did not make any difference:

$config[‘secure_forms’] = “n”; $config[‘disable_csrf_protection’] = “y”;

These two issues on not show-stoppers, but they shouldn’t be either. Something is obviously wrong.

I would appreciate any solid guidance on this.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.