All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Error on front-end after EE CMS update and Low Search plugin update

Mike Lohrman 12 Dec 2018 21:31 question, complete

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

  1. 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.

  2. 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.

  3. Low 13 Dec 2018 19:13

    Released it just now.

  4. Mike Lohrman 13 Dec 2018 19:34

    you da man! thank you!