I'm using WAMP2.0i and tried this module.. everthing seems correct until one time, I tried to create a base rate 1000 and assign it to certain hotel room type. when I hit save a message prompts telling :
PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'from_rate' at row 1: UPDATE {hotel_booking_room_types} SET from_rate=:db_update_placeholder_0 WHERE (nid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => 1000.000 [:db_condition_placeholder_0] => 11 ) in hotel_booking_set_room_from_rate() (line 545 of C:\wamp\www\Balai Gloria\sites\all\modules\uc_hotel\hotel_booking\hotel_booking.util.inc).
Im kind of worried because I can't set base rates 1000 and above.. does anybody know how to solve this problem??? I attach the sample prompt I got.. help me please.. thank you very much Drupal.org..
Comment | File | Size | Author |
---|---|---|---|
#3 | Untitled4.png | 247.11 KB | requiem08 |
Untitled3.png | 180.22 KB | requiem08 |
Comments
Comment #1
larowlanJust alter the precision/scale of the from_rate field in the hotel_booking_room_types table.
It only supports 999.99 per night. Which is probably short sighted given Yen or other currencies.
Comment #2
requiem08 CreditAttribution: requiem08 commentedI appreciate the help..and yes, we use peso here, so thats why 999. is somehow short.. ok I'll try it.. thanks
Comment #3
requiem08 CreditAttribution: requiem08 commentedComment #4
requiem08 CreditAttribution: requiem08 commentedComment #5
bailey86 CreditAttribution: bailey86 commentedI see you are using Windows - but thought this bug report may shed some light on your issue.
This looks like it could be related to a bug in the Debian package libapache2-mod-php5filter. I've reported it here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709023
My fix was to install the package libapache2-mod-php5 which then replaced libapache2-mod-php5filter.
In fact the package libapache2-mod-php5 should be used in preference to libapache2-mod-php5filter as on the package page for libapache2-mod-php5filter it even says 'Unless you specifically need filter-module support, you most likely should instead install libapache2-mod-php5.'
This has also been reported as a bug - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709027
It could also be related to https://bugs.php.net/bug.php?id=62507