SP Booking Search Issue – Wrong Destination Filter & "getParams() On Null" Error - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

SP Booking Search Issue – Wrong Destination Filter & "getParams() On Null" Error

LG

Laetitia G

Extension 7 months 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.

0
13 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 7 months ago #184884

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

0
LG
Laetitia G
Accepted Answer
7 months ago #185077

Hello Ofi,

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

Best regards Laetitia

0
LG
Laetitia G
Accepted Answer
7 months ago #185078

Hello Ofi,

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

Best regards Laetitia

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 7 months ago #185260

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

0
LG
Laetitia G
Accepted Answer
7 months ago #185414

Hello,

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

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 7 months ago #185512

I have updated this file:

components/com_spbooking/models/packages.php

Please check the search module now.

0
LG
Laetitia G
Accepted Answer
7 months ago #185601

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

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 7 months ago #185653

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

0
LG
Laetitia G
Accepted Answer
7 months ago #185659

here is the link and the issue

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 7 months ago #185746

I have updated this file:

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

Please check your issue now.

0
LG
Laetitia G
Accepted Answer
7 months ago #185983

Hi Olfi,

Seems that one part of the issue is gone. NO more warning is appering now. Unfortunately, whenever I choose a DESTINATION in the DESTINATION FIELD with all elements, the message is : No package found. But when I leave the DESTINATION FIELD blanck; it shows all the package available. The filter is not working properly.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 7 months ago #186164

I have not found the issue. Please take a screencast or screenshot of demonstrating the issue and share here. I will check it again.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 months ago #196745

Just checking in to see if you have feedback on the provided solution. If the answer resolved your query, you can mark it as accepted to close the post and guide others with similar questions. You’ll find a button to accept answers below each comment.

If you need further assistance, feel free to let us know!

0