• Resolved SS88 LLC

    (@ss88_uk)


    Hello,

    I recently updated Matomo and now it’s no longer tracking. The error is below. How can I diagnose and/or fix this error?

    2020/12/11 06:57:51 [error] 3675#3675: *110083 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in /path/to/website/wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php:232
    Stack trace:
    #0 /path/to/website/wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php(203): GeoIp2\Database\Reader->getRecord()
    #1 /path/to/website/wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php(73): GeoIp2\Database\Reader->modelFor()
    #2 /path/to/website/wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php(125): GeoIp2\Database\Reader->city()
    #3 /path/to/website/wp-content/plugins/matomo/app/plugins/UserCountry/VisitorGeolocator.php(145): Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2\Php->getLocation()
    #4 /path/to/website/wp-content/plugins/matomo/app/plugins/UserCountry/VisitorGeolocator.php(115): Piwik\Plugins\UserCountry\VisitorGeolocator->getLocationObject()
    #5 /path/to/website" while reading response header from upstream, client: 174.80.188.94, server: XXX, request: "POST /wp-content/plugins/matomo/app/matomo.php?action_name=
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter SS88 LLC

    (@ss88_uk)

    Hello,

    I’ve done a bit more digging. I have a plugin called 301 Redirects Pro installed, which also uses Maximind. I’ve reached out to their support, but I’m not 100% sure what I should be asking them. I’m lead to believe there’s a plugin conflict. Here’s where they are, maybe?

    /wp-content/plugins/matomo/app/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php
    /wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php
    /wp-content/plugins/301-redirects/libs/geoip/src/MaxMind/Db/Reader.php
    
    Plugin Author Thomas

    (@tsteur)

    Hi @ss88_uk

    sorry about that problem and thanks for looking into other plugins. I installed the 301 redirects plugin trying to reproduce it but it seems to be only included in the pro version which I cannot access. Could you ask them maybe what version of MaxMind they are using and whether they are planning on upgrading to a newer version of MaxMind (the one they include might be very much outdated and no longer maintained). That would be great.

    Could you check out maybe also this FAQ? https://matomo.org/faq/troubleshooting/how-do-i-fix-the-error-call-to-undefined-method-maxminddbreadergetwithprefixlen/ It might be in your case more of an error with the other plugin but you never know.

    Thread Starter SS88 LLC

    (@ss88_uk)

    Morning Thomas,

    Thanks for the reply.

    I did reach out to them – their support said they’ve sent it to their development team to fix, hopefully.

    When I disable their plugin, Matomo works as expected.

    I’ll keep theirs disabled until the right update is available, but if it’s too long, I’ll just find another redirect plugin.

    You can close this topic if you like.

    Plugin Author Thomas

    (@tsteur)

    Thanks for this @ss88_uk very much appreciated. Hope they will fix this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error (no longer tracking): Uncaught Error: Call to undefined method MaxMi’ is closed to new replies.