Title: Multibooking form category_id error
Last modified: July 23, 2019

---

# Multibooking form category_id error

 *  Resolved [rgalton](https://wordpress.org/support/users/rgalton/)
 * (@rgalton)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/multibooking-form-error-using-category/)
 * 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 6 years, 10 months ago by [rgalton](https://wordpress.org/support/users/rgalton/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/multibooking-form-error-using-category/#post-11759483)
 * 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](https://wordpress.org/support/users/rgalton/)
 * (@rgalton)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/multibooking-form-error-using-category/#post-11759650)
 * Thanks, I will make this change – will it be ok in future updates?
    -  This reply was modified 6 years, 10 months ago by [rgalton](https://wordpress.org/support/users/rgalton/).
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/multibooking-form-error-using-category/#post-11760564)
 * 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.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Franky](https://wordpress.org/support/users/liedekef/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/multibooking-form-error-using-category/#post-11760564)
 * Status: resolved