matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!

Home Page:https://matomo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] iconv() notice in PHP GeoIp2 LocationProvider during fuzzy matching

diosmosis opened this issue · comments

commented

What happened?

A Matomo for WordPress user reports seeing these notices in their PHP error log:

iconv(): Detected an illegal character in input string in /var/www/example.com/htdocs/wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php on line 296;

(source: https://wordpress.org/support/topic/php-errors-in-server-log/)

What should happen?

Notices should not be emitted by the PHP GeoIP location provider. The fuzzyMatch method should perhaps ignore characters that cannot be transliterated or errors should be silenced.

How can this be reproduced?

Unknown, though the user in question is using the default DB-IP databases, and geolocation appears to be working (there is data in the Locations reports).

Matomo version

5.1.0

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