Title: Bug when submit
Last modified: August 21, 2016

---

# Bug when submit

 *  Resolved [quentinmauret16](https://wordpress.org/support/users/quentinmauret16/)
 * (@quentinmauret16)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bug-when-submit/)
 * Hi, first thanks for your work, the plugin is exactly what i was searching for.
   
   However, i have a little problem, in the front, i fill the fields and click to
   submit and i have three errors :
 *  both of them are in Booking.class.php line 365.
    -Undefined variable: rtb_controller-
   Trying to get property of non-object – Call to a member function get_setting()
   on a non-object
 * I have absolutely no idea where it could comes from, can you help me ?
 * [https://wordpress.org/plugins/restaurant-reservations/](https://wordpress.org/plugins/restaurant-reservations/)

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

 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bug-when-submit/#post-5143190)
 * Hi quentinmauret16,
 * Thanks for reporting this. It looks like the issue is caused in situations where
   there are no date/time restrictions for reservations. I’ll push out an update
   with a fix soon.
 * If you want to change this in the meantime, edit the file in `wp-content/plugins/
   restaurant-reservations/includes/Booking.class.php`. Find line 365 and add the
   following right before that line:
 * `global $rtb_controller;`
 *  Thread Starter [quentinmauret16](https://wordpress.org/support/users/quentinmauret16/)
 * (@quentinmauret16)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bug-when-submit/#post-5143199)
 * Thank’s very much.
 * I found an other thing. If i have no time restrictions for reservations i have
   an error message “the time you entered is not valid…”
    if i have a time restriction,
   i can’t click on any hour when filling the field
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bug-when-submit/#post-5143208)
 * Would you be able to post a screenshot of your schedule settings? Make sure each
   date/time panel is open. If not, would you be willing to let me login to your
   site to take a look at the settings? If so, please contact me via the [form on my site](http://themeofthecrop.com/about/support).
   Don’t post any details here, this is a public forum.
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bug-when-submit/#post-5143371)
 * I’ve just pushed out v1.2.1 which should fix this issue. You should see an update
   appear in you WordPress admin dashboard in the next few hours.

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

The topic ‘Bug when submit’ is closed to new replies.

 * ![](https://ps.w.org/restaurant-reservations/assets/icon-128x128.png?rev=2205491)
 * [Five Star Restaurant Reservations - WordPress Booking Plugin](https://wordpress.org/plugins/restaurant-reservations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restaurant-reservations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restaurant-reservations/)
 * [Active Topics](https://wordpress.org/support/plugin/restaurant-reservations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restaurant-reservations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restaurant-reservations/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [NateWr](https://wordpress.org/support/users/natewr/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/bug-when-submit/#post-5143371)
 * Status: resolved