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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.