Hi,
I'm getting a blnk page and this error log message when trying to click 'Add Base Rate' :

PHP Fatal error: Call to undefined function _pad_with_zeros() in .../uc_hotel/hotel_booking/hotel_booking_admin.inc on line 765

Running on MAMP

Any idea what the issue is?

CommentFileSizeAuthor
#3 639540.patch9.14 KBwillvincent
#1 uc_hotel-639540.patch1.35 KBshushu

Comments

shushu’s picture

Assigned: dan_metille » shushu
Priority: Critical » Minor
Status: Active » Needs review
StatusFileSize
new1.35 KB

I believe you didn't enabled the hotel_calendars module.
Please do it and tell us whether this problem still exist.

In any case, this is an issue of dependencies. If we use _pad_with_zeros() in other modules that does not depend on hotel_calendars.module, than we should put _pad_with_zeros() somewhere else...

Attached patch that put it in hotel_booking.module

dan_metille’s picture

Status: Needs review » Fixed

Thanks for the quick and helpful reply.
It worked after enabling the hotel_calendars module.

But now I'm having this issue about getting no results: http://drupal.org/node/639996

willvincent’s picture

StatusFileSize
new9.14 KB

Changed function so it lives in the hotel_booking namespace: hotel_booking_pad_with_zeros()

Committed to CVS with these changes.

willvincent’s picture

Status: Fixed » Closed (fixed)