PHP Errors
When I submit my form, I get these errors in the error page.
A PHP Error was encountered
Severity: Warning
Message: array_merge() [function.array-merge]: Argument #2 is not an array
Filename: low_search/mod.low_search.php
Line Number: 312
A PHP Error was encountered
Severity: Warning
Message: array_key_exists() expects parameter 2 to be array, null given
Filename: low_search/mod.low_search.php
Line Number: 331
Here is my search form
{exp:low_search:form collection="members" secure="no" search_mode="all" result_page="test/low-search-test-results"}
<fieldset>
<label>occupation_status:</label>
<select name="occupation_status" dir="ltr" id="occupation_status">
{exp:low_options:occupation_status}
{options}
<option value="{option:value}">{option:label}</option>
{/options}
{/exp:low_options:occupation_status}
</select>
</fieldset>
<button type="submit">Search</button>
{/exp:low_search:form}
and this is my results form
{exp:low_search:results}
{if count == 1}<ol>{/if}
<li><a href="{comment_url_title_auto_path}">{title}</a></li>
{if count == total_results}</ol>{/if}
{if no_results}No search results{/if}
{/exp:low_search:results}
I am using Low Search 2.1.2 and ExpressionEngine 2.5.5
Replies
Low 9 Jan 2013 08:05
Looks like you stumbled upon a little bug there. Try adding at least 1 parameter to the Results tag. In your case, the disable="" parameter would actually be useful as well.
Low 9 Jan 2013 08:07
Actually, you will need to add the query="" parameter to the tag if you want to generate results from the form submission anyway.