• Resolved rgalton

    (@rgalton)


    I’m trying to set up a booking form for multiple events using the [eme_add_multibooking_form] shortcode. When I set category_id=1 I get the following error:

    Notice: Undefined variable: future_only in eme_categories.php on line 319

    The form works fine if I select all the events by id, but I’d really like to be able to select by category.

    Thanks in advance.

    • This topic was modified 5 years, 7 months ago by rgalton.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Franky

    (@liedekef)

    This can be fixed by changing line 313 in eme_categories.php from
    function eme_get_category_eventids($category_id,$future=0) {
    to
    function eme_get_category_eventids($category_id,$future_only=0) {

    Also, while it is indeed an error, you should disable php notices in your web interface (certainly in production)

    Thread Starter rgalton

    (@rgalton)

    Thanks, I will make this change – will it be ok in future updates?

    • This reply was modified 5 years, 7 months ago by rgalton.
    Plugin Author Franky

    (@liedekef)

    yes, the next version will contain the fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multibooking form category_id error’ is closed to new replies.