Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] mb_strtolower(): Argument #1 ($string) must be of type string, array given in Referrers/Columns/Base.php:58 #22847

Open
4 tasks done
tsteur opened this issue Dec 12, 2024 · 1 comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member

Comments

@tsteur
Copy link
Member

tsteur commented Dec 12, 2024

What happened?

This is on PHP 8.2

Happens few times per day.

Backtrace:

PHP Fatal error: Uncaught TypeError: mb_strtolower(): Argument #1 ($string) must be of type string, array given in /var/www/html/plugins/Referrers/Columns/Base.php:589 Stack trace: #0 /var/www/html/plugins/Referrers/Columns/Base.php(589): mb_strtolower() #1 /var/www/html/plugins/Referrers/Columns/Base.php(123): Piwik\Plugins\Referrers\Columns\Base->detectReferrerCampaign() #2 /var/www/html/plugins/Referrers/Columns/Base.php(269): Piwik\Plugins\Referrers\Columns\Base->getReferrerInformation() #3 /var/www/html/plugins/Referrers/Columns/Campaign.php(43): Piwik\Plugins\Referrers\Columns\Base->getReferrerInformationFromRequest() #4 /var/www/html/core/Tracker/Visit.php(545): Piwik\Plugins\Referrers\Columns\Campaign->shouldForceNewVisit() #5 /var/www/html/core/Tracker/Visit.php(173): Piwik\Tracker\Visit->triggerPredicateHookOnDimensions() #6 /var/www/html/core/Tracker.php(171): Piwik\Tracker\Visit->handle() #7 /var/www/html/core/Tracker/Handler.php(55): Piwik\Tracker->trackRequest() #8 /var/www/html/core/Tracker.php(151): Piwik\Tracker\Handler->process() #9 /var/www/html/core/Tracker.php(126): Piwik\Tracker->track() #10 /var/www/html/piwik.php(73): Piwik\Tracker->main() #11 {main} thrown in /var/www/html/plugins/Referrers/Columns/Base.php on line 589

What should happen?

No fatal error

How can this be reproduced?

.

Matomo version

5

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

@tsteur tsteur added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Dec 12, 2024
@sgiehl
Copy link
Member

sgiehl commented Dec 13, 2024

@tsteur Are we by any chance able to look up the tracking url causing this error? It seems like for any reason the referrer name is set to an array instead of a string. But it's hard to determine where that comes from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member
Projects
None yet
Development

No branches or pull requests

2 participants