Low Search with NOT encoding queries: PHP error: array_merge(): Argument #1 is not an array in mod.low_search.php#1572
Hi,
This topic is similar to this one:
https://getsatisfaction.com/low/topic...
Getting these errors when I use search results page as replacement for channel:entries index page.
A PHP Error was encountered
Severity: Warning
Message: array_merge() [function.array-merge]: Argument #1 is not an array
Filename: low_search/mod.low_search.php
Line Number: 1572
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/systemxtr/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408
Using low_search filters on the same page
When I choose any of the filters, query is added to the URL and the error disappears
Not encoding queries so cannot set query parametar alghouth i tried this: query="site?collection=1|2&category=1|2" and
query="?collection=1|2&category=1|2" and
query="collection=1|2&category=1|2"
but nothing removed the error on top of the page.
This is my low_search:results opening tag:
{exp:low_search:results
default:collection="1|2"
default:category="1|2"
channel="channel1|channel2"
status="not closed"
limit="90"
orderby="date"
sort="desc"
paginate="bottom"
disable="member_data"
dynamic="no"
}
Using
EE 2.7.3
Low Search 3.1.1
Is it possible to remove this error and keep the option of not encoding queries?
Thanks
Replies
Low 24 Feb 2014 09:37
Okay, that'll be a bug then. To fix, open up mod.low_search.php and look up line #1572 which reads
and change that to
which should fix it.
hrvoje66 24 Feb 2014 09:44
Yes, its fixed.
No more errors.
Thanks!