• Resolved quentinmauret16

    (@quentinmauret16)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@quentinmauret16)

    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

    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. Don’t post any details here, this is a public forum.

    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.