Support » Plugin: Hotel Booking Lite » Fatal error search results

  • Hi, when choosing a date and finding available rooms to book, it shows: Fatal error: Uncaught Error: Call to a member function isDateInSeason() on null in /podobovo.if.ua/www/wp-content/plugins/motopress-hotel-booking/includes/booking-rules/reservation/rule.php:57 Stack trace: #0 /podobovo.if.ua/www/wp-content/plugins/motopress-hotel-booking/includes/booking-rules/reservation/rules-holder.php(73): MPHB\BookingRules\Reservation\Rule->isForDate(Object(DateTime)) #1 /podobovo.if.ua/www/wp-content/plugins/motopress-hotel-booking/includes/booking-rules/reservation/reservation-rules.php(110): MPHB\BookingRules\Reservation\RulesHolder->findActualCombinedRule(Object(DateTime)) #2 /podobovo.if.ua/www/wp-content/plugins/motopress-hotel-booking/includes/booking-rules/rules-checker.php(39): MPHB\BookingRules\Reservation\ReservationRules->verify(Object(DateTime), Object(DateTime), 0) #3 /podobovo.if.ua/www/wp-content/plugins/motopress-hotel-booking/includes/shortcodes/search-results-shortcode.php(594): MPHB\BookingRules\RulesChecker->ve in /podobovo.if.ua/www/wp-content/plugins/motopress-hotel-booking/includes/booking-rules/reservation/rule.php on line 57

    • This topic was modified 1 month, 1 week ago by oleg13.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MotoPress

    (@motopress)

    Hi @oleg13,
    First of all, navigate to accommodation > seasons and make sure each season has a start and end dates.
    If it is not helpful to navigate to Bookings > Booking rules and make sure there is no rule without any season applied. If there is such booking rule please select a season or remove this rule at all and save the changes.

    Plugin Support Dimitar

    (@dimned)

    Hi @oleg13,
    Have you managed to fix the error?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.