You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING Referrers
plugins/Referrers/Columns/Base.php(525):
Deprecated - mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
2.
WARNING Referrers
plugins/Referrers/Columns/Base.php(478):
Deprecated - urldecode(): Passing null to parameter #1 ($string) of type string is deprecated
Problem 1 I solved temporarily by replacing $this->keywordReferrerAnalyzed = mb_strtolower($this->keywordReferrerAnalyzed);
with $this->keywordReferrerAnalyzed = mb_strtolower($this->keywordReferrerAnalyzed ?? '');
But I am not sure this is the best fix.
The text was updated successfully, but these errors were encountered:
MichaelRoosz
changed the title
PHP 8.1 warnings in plugin Referrer (Matomo 4.9.0)
PHP 8.1 warnings in plugin Referrers(Matomo 4.9.0)
Apr 21, 2022
MichaelRoosz
changed the title
PHP 8.1 warnings in plugin Referrers(Matomo 4.9.0)
PHP 8.1 warnings in plugin Referrers (Matomo 4.9.0)
Apr 21, 2022
justinvelluppillai
added
Bug
For errors / faults / flaws / inconsistencies etc.
and removed
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
labels
Apr 21, 2022
Hi @MichaelRoosz - that fix looks fine to me, it'd be great if you could make a Pull Request for that. The other warning would be a similar fix to the same file.
With Matomo 4.9.0, I see lots of these warnings:
1.
2.
Problem 1 I solved temporarily by replacing
$this->keywordReferrerAnalyzed = mb_strtolower($this->keywordReferrerAnalyzed);
with
$this->keywordReferrerAnalyzed = mb_strtolower($this->keywordReferrerAnalyzed ?? '');
But I am not sure this is the best fix.
The text was updated successfully, but these errors were encountered: