#1078 – Error when upgrading to Joomla 4

Status: Closed - Category: Showtime Image Gallery
 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!
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');
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

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 .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

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