#1078 Posted in ‘Showtime Image Gallery’

Latest post by Ton van der Helm on Wednesday, 16 August 2023 21:51 EEST

Ton van der Helm
 Hello Lefteris,

On my clients testsite I get an error when I upgrade the site to Joomla 4:

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/mol4test/domains/pecars.123testdomein.nl/public_html/mm4/modules/mod_showtime/mod_showtime.php on line 11

What can this be?

Thanks!

Ton van der Helm
I think I managed to get rid of the error myself through a commit on Github.
I seems to work but maybe you can confirm this?

In short this is what I needed to change.

$moduleAttribs['class'] = 'moduletable ' . htmlspecialchars($params->get('moduleclass_sfx'), ENT_QUOTES, 'UTF-8');

change to:

$moduleAttribs['class'] = 'moduletable ' . htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_QUOTES, 'UTF-8');

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review