Romain / Matomo-IP-to-Company

A plugin for Matomo which gives you the name of the company that visited your website, based on its IP.
GNU General Public License v3.0
15 stars 11 forks source link

Recurrent error in logs #34

Open yrammos opened 1 year ago

yrammos commented 1 year ago

The following error message appears regularly in the logs:

Uncaught exception: Error: Undefined constant "Piwik\Plugins\IPtoCompany\FILTER_SANITIZE_MAGIC_QUOTES" in /var/www/html/<redacted>/plugins/IPtoCompany/API.php:268

PHP version: 8.0.28 Matomo version: 4.14.2 Matomo Update History: 4.11.0,4.10.1,4.5.0,4.4.1,4.3.1,4.2.1 Matomo Install Version: Unknown - pre 3.8. Latest Available Version: 4.14.2 MySQL version: 8.0.33-0ubuntu0.22.04.2 OS: Ubuntu 22.04

Thank you.

saschabrockel commented 1 year ago

Same here while archiving. See here: https://forum.matomo.org/t/archiving-undefined-constant-iptocompany-filter-sanitize-magic-quotes-error/52928

zaidan1 commented 3 weeks ago

@yrammos @saschabrockel

I was able to make this plugin work with Matomo 5.1.0, and I have added two options:

yrammos commented 1 week ago

Thank you, @zaidan1!