I have a site with three unit types, type A with 5 units, type B with 1 unit, and type C with 1 unit. When searching for units on the Add a Booking screen, the results only show results from unit type B, and changing the "Unit Type" in the list box has no effect. I have tried marking unit type B as "non-bookable", in which case only the units from unit type A appear.
This returns two error messages:
| Location |
Referrer |
Message |
| system/ajax |
admin%2Frooms%2Fbookings%2Fadd%2Fstandard_booking |
Notice: Undefined property: RoomsBooking::$booking_status in rooms_booking_edit_form_get_rooms() (line 498 of .../sites/all/modules/rooms/modules/rooms_booking/rooms_booking.admin.inc). |
| system/ajax |
admin%2Frooms%2Fbookings%2Fadd%2Fstandard_booking&render=overlay |
Notice: Undefined offset: -1 in rooms_booking_edit_form_get_rooms() (line 505 of .../sites/all/modules/rooms/modules/rooms_booking/rooms_booking.admin.inc). |
Also, when searching for units for the current date, no results are returned (even though I have verified that all units are available).
No error messages are produced for the second issue.
It seems this is an AJAX issue; any idea what is causing it?
Comments
Comment #1
ronald_istos commentedCould you please try this with the latest dev version of Rooms? Thanks!
Comment #2
katana346 commentedThat made things far worse actually...
Now I get this error message when I try to search for any availability:
Path: /?q=system/ajax
StatusText: Service unavailable (with message)
ResponseText: Exception: DateTime::__construct() [<a href='datetime.--construct'>datetime.--construct</a>]: Failed to parse time string (2013-4-) at position 6 (-): Unexpected character in DateTime->__construct() (line 187 of /home/petruna/public_html/bristolcabins.org/sites/all/modules/rooms/modules/rooms_pricing/includes/rooms_pricing.unit_pricing_calendar.inc).
My home page now also returns an "unexpected error" message, which seems to be related to the same issue judging by the log message...
Comment #3
ronald_istos commentedCould you share a db dump so we can recreate the problem - or even just a dump of the rooms related tables.
Also did you make sure you run any updates, cleared cache after upgrading Rooms?
Comment #4
ronald_istos commentedJust tested and this works on latest code so closing.