Matomo 4.8.0 upgrade warning for htmlspecialchars() using php8.1

WARNING: /core/View/OneClickDone.php(68): Deprecated - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated - Matomo 4.7.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: CoreUpdater, Action: oneClickUpdate, In CLI mode: false)

during Matomo 4.9.0 upgrade it’s still here:

WARNING: /core/View/OneClickDone.php(68): Deprecated - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: CoreUpdater, Action: oneClickUpdate, In CLI mode: false)

Very strange, as it seems it has been fixed:

There might still be deprecation warnings on PHP 8.1. We tried to fix all we could find, but our tests are not yet running on PHP 8.1, so it can happen that some slip through.

I’ve created https://github.com/matomo-org/matomo/pull/19103 to fix that one.

1 Like

during 4.9.1 update it’s still here :slight_smile:
WARNING: /core/View/OneClickDone.php(68): Deprecated - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated - Matomo 4.9.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: CoreUpdater, Action: oneClickUpdate, In CLI mode: false)