Error can occur? Twig Error

I have just installed Piwik 3.2.0 on FreeBSD 11.1. The GeoIPCity.dat file was manually downloaded to the misc folder. Upon refreshing the page I got this error:

Piwik encoutered an error: Call to undefined function Piwik\Plugins\UserCountry\LocationProvider\GeoIp\filter_var() (which lead to: An exception has been thrown during the compilation of a template (“Error in PHP GeoIP provider: Twig Test “divisibleby” is deprecated since version 1.21. Use “divisible by” instead in /…/analytics/piwik/plugins/CorePluginsAdmin/templates/safemode.twig at line 78. on line 652 of /…/analytics/piwik/vendor/twig/twig/lib/Twig/ExpressionParser.php”) in “@CorePluginsAdmin/safemode.twig”.)

Has anybody seen this type of error? Do you know how to fix it?

Thanks.

1 Like

Please use the latest version of matomo (3.5.1) and the GeoIP2 Plugin.

1 Like