SP Booking Search Issue – Wrong Destination Filter & "getParams() on null" Error - Forum | JoomShaper
Staff replied Extensions

SP Booking Search Issue – Wrong Destination Filter & "getParams() on null" Error

Asked by Laetitia G 1 year ago Last activity 1 year ago

Hello,

I'm using SP Booking on Joomla to manage hotel, package, and transport bookings. However, I’m facing two major issues with the search functionality:

1️⃣ Destination Filter Issue

When selecting a package, the "Destination" field displays tours instead of locations.
I need it to show actual locations (e.g., Chiang Rai, Luang Prabang) rather than tour names.
2️⃣ Search Error: "Call to a member function getParams() on null"

When I perform a search, it redirects me to an error page with the message:
"Call to a member function getParams() on null."
This happens when searching for packages, but not for hotels or transport.
🔍 What I’ve Tried:

Checked SP Booking configuration for search filters.
Verified category and location settings.
Cleared Joomla cache and updated SP Booking to the latest version.
📌 Question:

How can I make the "Destination" filter display correct locations for packages?
What might be causing the "getParams() on null" error, and how can I fix it?
Any help would be greatly appreciated! Thanks in advance.

13 replies

Ofi Khan Staff

Hello Laetitia G,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing. Rest assured, I will look into this issue for you and work to resolve it as quickly as possible.

If you could kindly provide any additional information regarding the issue, it would greatly help me investigate and address it more efficiently. Please share your cPanel URL to check the issue. I need to check the component files.

It will greatly help me if you could upload any screencast of your issue. You can use Google Drive, One Drive, Files FM etc. platform to share the issue.

Best regards

Laetitia G Asked this

Hello Ofi,

Thanks for your reply. You will find below all informations ans screenshots I've made.

Best regards
Laetitia

Laetitia G Asked this

Hello Ofi,

Thanks for your reply. You will find below all informations ans screenshots I've made.

Best regards
Laetitia

Ofi Khan Staff

Please share cPanel access so that I can log in and check the files.

Laetitia G Asked this
1 year ago · edited

Hello,

please look at the hidden content.
Thank you
Best regards
Laetitia

Ofi Khan Staff

I have updated this file:

components/com_spbooking/models/packages.php

Please check the search module now.

Laetitia G Asked this

Yes it's better but still when you select "package booking date" you have this error :

Warning: foreach() argument must be of type array|object, bool given in /home/p364ofqjywzz/public_html/cocoonthailand.com/components/com_spbooking/views/packages/view.html.php on line 39
The package deal appears only if you leave the "date" filters blanck.

Thanks in advance for your help

Ofi Khan Staff

Sorry, I could not get the issue. Please take a screencast and share here via any drive link.

Laetitia G Asked this

here is the link and the issue

Ofi Khan Staff

I have updated this file:

components/com_spbooking/views/packages/view.html.php

Please check your issue now.

Log in to reply.