Skip to content

PHP 8.1: DevicesDetection: urlencode() Passing null to parameter #1 ($string) of type string is deprecated #20356

@tsteur

Description

@tsteur

We tested running PHP 8.1 on Cloud, noticed this warning:

/var/www/html/plugins/DevicesDetection/API.php(129): Deprecated - urlencode(): Passing null to parameter #1 ($string) of type string is deprecated - Matomo 4.13.3 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) [internal function]: Piwik\ErrorHandler::errorHandler(),#1/plugins/DevicesDetection/API.php(129),[internal function]: Piwik\Plugins\DevicesDetection\API->Piwik\Plugins\DevicesDetection{closure}(),#3/core/DataTable.php(511),#4/plugins/DevicesDetection/API.php(133),[internal function]: Piwik\Plugins\DevicesDetection\API->getModel(),#6/core/API/Proxy.php(244),#7/core/Context.php(28),#8/core/API/Proxy.php(335),#9/core/Plugin/Visualization.php(341)

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions