Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in (php 8.1) - Forum | JoomShaper
Solved SP Page Builder

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in (php 8.1)

Asked by Rózsa Csaba 3 years ago Last activity 3 years ago

Hello!

I would like to ask for help. I updated to php 8.1 and an error message appears in the seach module field and after the search. Can I get your help on what could be the problem? Thank you very much!

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
3 years ago · edited

In Joomla 4.3+ module and component Search was removed, that's why it works in legacy mode only - and must be replaced with Smart Search in all subpages and websites.

I changed module in "Jánoshalma" page - as example, now is your turn to correct everywhere.

Rózsa Csaba Asked this

Hello Paul!

Thank you again for your quick response! I'm thankful!

1 more reply

Paul Frankowski Senior Staff
3 years ago · edited

HI
Rózsa,

In general in Joomla 4+ you shouldn't use "classic" Search anymore, but Smart search - but sure, I will check on your site...

Log in to reply.