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

Support archive

Using Low Search and Low Events together to get a list of future events filtered by a relationship field

Joe Beaver 31 Jan 2016 22:39 question, complete

So I have used Low Search to filter via a relationship field before in this way:

{exp:low_search:results channel="news" dynamic="no" limit="5" child:related-artists="{segment_3}" orderby="entry_date" sort="desc"}

This works perfectly, however I now need to do the same task but for future Low Events. I saw something on the website that says Low Events works together with Low Search, but when I try this:

{exp:low_search:results channel="calendar" limit="10" child:cal-artist="{segment_3}" low_events:show_passed="no" show_future_entries="yes"}

I get the error "Unable to load the requested file: helpers/low_events_helper.php". Am I doing something wrong here or is what I want to do not possible?

* Low Events v1.5.1
* Low Search v4.4.2
* ExpressionEngine v2.9.3

Hope you can help!

Thanks

Replies

  1. Low 1 Feb 2016 08:25

    Can't seem to be able to replicate...

    I'll need to take a look myself. Please send SuperAdmin and FTP login credentials to hi at gotolow dot com if you can.

  2. Low 1 Feb 2016 08:54

    Hold on, try opening low_events/filters/low_events/lsf.low_events.php and look op line #108 which reads

    $Events = new Low_events();


    Change that to...

    ee()->load->add_package_path(PATH_THIRD.LOW_EVENTS_PACKAGE); 
    $Events = new Low_events();
    ee()->load->remove_package_path(PATH_THIRD.LOW_EVENTS_PACKAGE);


    Does that help?

    gtowle 12 May 2016 21:00

    Worked for me, too. Thanks!

  3. Joe Beaver 1 Feb 2016 09:00

    Caught me just in time! Was just about to get everything up on a server for you, but yes, you're latest answer worked perfectly and its all working now!

    Thanks very much! Awesome support as always!

  4. Christian Rochford 1 Nov 2019 15:59

    Hi,
    I've been trying something similar to the above and am getting the same error message

    Unable to load the requested file: helpers/low_events_helper.php

    However, when I try to update the core file as suggested I'm getting the following error

    Use of undefined constant LOW_EVENTS_PACKAGE - assumed 'LOW_EVENTS_PACKAGE' (this will throw an Error in a future version of PHP)
    user/addons/low_events/filters/low_events/lsf.low_events.php, line 109

    Thanks

    Low 5 Nov 2019 07:27

    Looks like you're using a newer version of LE, which doesn't set those constants.
    Try using this instead:

    ee()->load->add_package_path(PATH_THIRD.'low_events');

  5. Christian Rochford 7 Nov 2019 12:03

    Great thanks for that!