I've installed the module properly, created room unit types & room units, make them available by default, created a customer profile and came to booking page. I entered customer name, start date, end date and clicked on "assign room" button. Then I have chosen the unit type and get the error I've pasted below:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /system/ajax
StatusText: Internal Server Error
ResponseText:

I've been searching for a solution but I still haven't found it.

(I've attached a screenshot. Blurred the customer name. Tamam means OK in Turkish.)

CommentFileSizeAuthor
ajax-error.jpg65.85 KBorkutmuratyilmaz

Comments

orkutmuratyilmaz’s picture

At the recent log messages, I can see the error log below:

Type ajax
Date Tuesday, March 20, 2012 - 14:03
User user
Location http://drupal/system/ajax
Referrer http://drupal/admin/rooms/bookings/add/standard_booking?render=overlay
Message Invalid form POST data.
Severity warning
Hostname 127.0.0.1
Operations

enxox’s picture

same error here, but I solved enabling the booking management module.

orkutmuratyilmaz’s picture

Ok. I've activated the "Rooms Booking Manager" sub-module and problem solved. Thanks enxox :)

orkutmuratyilmaz’s picture

Status: Active » Closed (fixed)
bones’s picture

Version: 7.x-1.0-alpha4 » 7.x-1.3
Issue summary: View changes
Status: Closed (fixed) » Active

I have just installed and am configuring Rooms and am getting this same error. It appears anywhere when trying to use the calendar/dates, so setting availability or creating a booking etc.

No additional information as to the error as exact text as above. Nothing in watchdog, or apache error log.

Have enabled "Rooms Booking Manager" and this makes no difference (initially it wasn't enabled). Have tried clearing caches, refreshing pages, different browsers. PHP memory limit is 128M.

bones’s picture

Found this error when enabling all php error reporting:
Fatal error: Can't inherit abstract function RoomsCalendarInterface::getEvents() (previously declared abstract in RoomsCalendar) in /sites/all/modules/rooms/includes/rooms.calendar.inc on line 7
Turns out it was down to my PHP version (5.3.3) and I apparently needed at least 5.3.9. Updated my server and all seems to work.

Should this be documented somewhere? As far as I am aware drupal 7 only requires 5.3?

Marvine’s picture

@bones : Same issue here.

A possible solution is to comment every functions in RoomsCalendarInterface, probably not the best but that's do the trick for server under PHP 5.3.9.

acrollet’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Closed (fixed)

Hi there,

thanks for the comments - I've documented the requirement for PHP 5.3.9 or greater on the module page and in the README file in the latest version of the code, which will be in Rooms 1.5.