Closed (fixed)
Project:
Hotel Booking System for Ubercart
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2011 at 09:21 UTC
Updated:
27 Jul 2012 at 09:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
larowlanThere is logic in the code to set all items before a certain date as unavailable.
In the admin settings form it is marked as something like 'auto-expire' or similar - what have you got set there?
Is it throwing any database errors?
Is it possible that your php's max_post_size is set quite low? With a large form sometimes php silently drops the posted form variables if their size exceeds that. It is common to experience that issue on the permissions form where there are lots of fields.
Comment #2
Slartibartfass commentedHi, I tried setting Defauilt Number Available to "0" and to "1" which lead to setting the whole month's availability to "0" or "1".
"Close Availability" is set to "Yesterday", I tried also the other options.
Where do I find php's max_post_size? This would make sense to me.
Thank you for support!
Comment #3
Slartibartfass commentedHi,
set max_post_size = 2M
Same behaviour.
These are the errors at the node:
* Notice: Undefined index: display_price in uc_taxes_node_view() (Zeile 98 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).
* Notice: Undefined index: #value in uc_taxes_node_view() (Zeile 98 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).
* Notice: Undefined index: sell_price in uc_taxes_node_view() (Zeile 101 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).
* Notice: Undefined index: #value in uc_taxes_node_view() (Zeile 101 von /srv/www/htdocs/zak/sites/all/modules/ubercart/uc_taxes/uc_taxes.module).
Any idea?
Comment #4
larowlanHi
Those taxes warnings are unrelated.
Are all dates being set to zero or just the old ones?
What month are you editing?
Have you got the auto-availability option set?
LR
Comment #5
Slartibartfass commentedHi!
All dates are set to zero / the value in auto-availability.
I tried setting/resetting auto-availability.
It seems to me as if the existing values are not read when opening the calender-edit-mode...
ts
Comment #6
larowlanHere's a debug patch (it doesn't change anything - just adds debugging).
You'll need to download and enable the devel module first.
Then when you save the rates - you should get an output of the submitted form values.
Can you expand the 'calendar' data and paste it here - either as a screenshot/pdf print or just the raw data.
Please change the status back to active when you've done that.
Comment #7
larowlanSorry, here's the correct patch :-)
Comment #8
larowlanCan you also check what version of php you have?
This module relies on some date/time functions in php and these changed significantly between php 5.2 and 5.3.
Comment #9
Slartibartfass commentedHi,
php --version says 5.3.3,
I'll try to run the patch. Thank you.
Comment #10
Slartibartfass commentedHi, larowlan,
I'm not really sure I did what you suggested, but this is the output of my operation.
I set availability of July,21 to "1" and then loaded "hotel availabilits calender" again. This showed up July,21 set to "0", however.
I hope this output is what you needed.
Thorsten
Comment #11
halter commentedhello. I'm using uc_hotel. and when i translate room to different language edit calendar availibility becomes impossible. why?Can u help me? and i want that modification of one of languages nodes change the others languages to same update.
Comment #12
larowlanhi @halter welcome to drupal please don't hijack existing threads, this relates to a different version - create a new one.
Please see the definitions of priority here: http://drupal.org/node/45111
Comment #13
sygnetica commentedHi.
I have the same problem.
When someone reserves the room - reservation on the calendar in the node is visible. But when I want to edit the availability of the room all the values are to 1 instead of 0 in the reserved period.
PHP Version: 5.3.6
post_max_size: 16M
Close Availability: Yesterday (i tried the other options)
Auto available interval: 1 (i tried the other options)
Any idea ?
Comment #14
sygnetica commentedSOLVED:
hotel_booking.calendars.inc
Best regards ;-)
Comment #15
IetC_development commentedWorks very fine, thank you very much @sygnetica !