Error on front-end after EE CMS update and Low Search plugin update
Updating a EE2 site to EE5, also updating Low Search along the way. Currently on EE5.0.1, Low Search 6.1.2 and Low Reorder 3.1.1. I get the error below when viewing a template with the code below...
The {get:market} tag is pulling a url variable using Mo Variables.
{exp:low_search:results {if get:market}child:project_market="{get:market}"{/if} orderby="low_reorder:projects"}
{/exp:low_search:results}
Notice
Undefined index: channels
user/addons/low_search/filters/relationships/lsf.relationships.php, line 257
Severity: E_NOTICE
Fatal error: Call to a member function where_in() on null in /home/byfivecr/client_kwk/build/user/addons/low_search/filters/relationships/lsf.relationships.php on line 266
Replies
Low 13 Dec 2018 07:47
Looks like this became a bug since EE4, and only occurs when you're using url_titles rather than entry IDs for the Relationships filter. Will get a fix for it ready soon.
In the meantime, I'd recommend not using the {get:market} variable, as that allows for the user messing up the template by changing the value in the URL, exposing a security issue.
If you're using GET vars with Low Search, a query string like ?child:project_market=foo would be the same as setting child:project_market="foo" so you don't need the if-statement in the opening Results tag.
Mike Lohrman 13 Dec 2018 15:07
Thanks Low, any idea when you might have an updated version? I'll also look into not using the variable.
Low 13 Dec 2018 19:13
Released it just now.
Mike Lohrman 13 Dec 2018 19:34
you da man! thank you!