Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
every time I want to update the Availability calender (eg. to set the room unavailable for some days), the last status of the month's availability gets lost. This means I have to enter the availability of the whole month again.
Is this right or am I doing wrong, and what am I doing wrong??
Thorsten
Comment | File | Size | Author |
---|---|---|---|
#10 | uc_hotel_debug.pdf | 206.28 KB | Slartibartfass |
#6 | 1209392-debug.patch | 554 bytes | larowlan |
#7 | 1209392-debug.patch | 1.21 KB | larowlan |
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Slartibartfass commentedHi,
php --version says 5.3.3,
I'll try to run the patch. Thank you.
Comment #10
Slartibartfass CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: sygnetica commentedSOLVED:
hotel_booking.calendars.inc
Best regards ;-)
Comment #15
IetC_development CreditAttribution: IetC_development commentedWorks very fine, thank you very much @sygnetica !