Error when trying to approve a reservation

More
6 years 4 months ago #10986 by lu
I am requiring approval for reservation but when I try to approve a reservation from the back end I get this error
Fatal error: Call to a member function load() on boolean in [redacted]/administrator/components/com_solidres/controllers/reservationbase.php on line 1424

I updated to latest 2.5.1 (error was present in 2.5, too, same block of code)

Code in question
	public function approve()
	{
		$id = $this->input->get('id', 0, 'uint');
		$app = JFactory::getApplication();
		$isSite = $app->isSite();
		$reservationTable = JTable::getInstance('Reservation', 'SolidresTable');
		$reservationTable->load($id);  ## <----------- line 1424

I searched forum for 'approve' but did not find any similar query. I wonder if this is because I modified the code to allow $0 cost per instruction in previous thread?

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #10990 by solidres
Replied by solidres on topic Error when trying to approve a reservation
Hi,

Please raise a new support ticket and provide us your website address, we will check it for you.

Regards,
The following user(s) said Thank You: lu

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago - 6 years 3 months ago #10992 by lu
Thank you. I can't find a submit ticket link anywhere, maybe because I am not a subscriber.

I uninstalled solidres component and reinstalled it to start fresh. Then I re-installed joomla too to start really fresh. same error. I've disabled approval required for now.

an additional question:

i think I'm doing something wrong but the way solidres works seems awkward and confusing.

here is my site.

seclusion.compassheart.com/

it has 1 asset with 4 rooms, all same type.

if you go and pick Feb 6-feb 7 (these days are booked) and click Check, you get

"We found no matched rooms for your search from Tue, 06 Feb 2018 to Wed, 07 Feb 2018, please adjust your booking dates or room options. Reset"

1) You click reset, you get View Calendar button and

Standard rate
Starting from
USD0.00
/ room / 1 night
Select

2) If you click View calendar, you see the availability calendar. But it's display only so you can't actually pick a different date on there. (can this calendar show the days where SOME rooms are booked vs. NO rooms are booked?)

3) Then you have to click select to get the check in date - check out date form.

that's like 3 extra clicks when no room is available. can it just show the check in - check out date form and let you pick another date, right from step (1) that would seem like the expected behavior.

obviously if you are running a hotel, it's rare that all rooms are booked, but a small facility will have this happen a lot.
Last edit: 6 years 3 months ago by lu.

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?