Booking rooms from front-end fails with message:
Fatal error: Call to a member function sub() on a non-object in /srv/www/htdocs/Rooms/sites/all/modules/rooms/modules/rooms_booking/includes/rooms_booking.availability_agent.inc on line 43
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | rooms-1615408-15.patch | 1.46 KB | msti |
Comments
Comment #1
ronald_istos commentedThis should be fixed in head, dev and beta3 - let me know if you can test it.
Comment #2
imevilduckie commentedI've tested with the beta3 and am still getting the same error.
Comment #3
imevilduckie commentedAlso still getting the error with beta4.
Comment #4
ronald_istos commentedYou need to give me some more info - Is this a clean install? have you run an update, are you clearing cache, etc.
Also would you mind visiting admin/rooms/config/bookings and save those settings and see if the error still persists.
If I cannot recreate I can't help I am afraid and right now on a clean Rooms install I can't recreate.
Comment #5
robertomete commentedComment #6
robertomete commentedBooked,failed after checkout or trying to remove booked room. But menu shortcart to booking cart works well.Changed booking setting from 1 day advance to same day booking reverted to same error as beta3
Comment #7
ronald_istos commentedSeriously - I need more info or I can't help and please avoid cross posting between issues.
What does failed mean? What exactly did you do? What was the error?
Changing the setting to same day booking doesn't create the same error for me.
Comment #8
robertomete commentedIssue is resolved by creating a virtual host or using a live server as opposed to localhost. Thanks.
Comment #9
ronald_istos commentedComment #10
ila commentedhi same error on a drupal 7.14 installation
and rooms
7.x-1.0-beta4+4-dev
Fatal error: Call to a member function sub() on a non-object in /web/htdocs/www.miosito.com/home/sites/all/modules/rooms/modules/rooms_booking/inclu... on line 43
please help me
thanks
Comment #11
rahul_jc commentedYes , this bug is still there . Can anyone help us with this problem??
Comment #12
axel pressbutton commentedHi, I've just encountered the same issue but knew it was working the other evening. After reviewing all changes I've made to settings etc. I noticed that I only get the error when the "Results presentation style" (/admin/rooms/config/bookings) is set to "Show availability of individual units".
"Show availability on a per-type basis" works fine.
Using Drupal 7.14 & Rooms 7.x-1.0-beta4
The full error was;
Comment #13
ronald_istos commentedPushed a fix to this to head - thanks for raising and apologies for the time to figure this out. Thanks to Axel for figuring out the exact situation that causes the error.
Comment #15
mstiplease disregard this
Comment #16
msti