@bst2002git opened this Issue on December 3rd 2020

I'v updated to matomo 4.0.3 from 3.14.1.
The error is
Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in vendor/geoip2/geoip2/src/Database/Reader.php line 232

i think some missing dependencies or something got wrong on update, but i do not know where to look for
ore something is wrong in the autoload.php...

i don't know if this is related, but when i try in the web root of matomo

composer -vv show geoip2/geoip2 --all

[UnexpectedValueException]
Unknown package has no name defined

@sgiehl commented on December 3rd 2020 Member

How did you do the update? Maybe reuploading the files (or at least the vendor directory) might help.

@bst2002git commented on December 3rd 2020

Hello @sgiehl
i updated via the Web-Interface and then via the cli: console core:update
no errors occurred

@sgiehl commented on December 3rd 2020 Member

Please try reuploading the vendor directory from the build package.
Or do you maybe have a php cache running? Maybe an old version of that file was still cached.

@bst2002git commented on December 3rd 2020

Hello,

i think this is the problem

php72-php-maxminddb-1.4.1-1.el6.remi.x86_64:
This optional PHP C Extension is a drop-in replacement for
MaxMind\Db\Reader.

@bst2002git commented on December 3rd 2020

updated to php72-php-maxminddb-1.8.0-2.el6.remi.x86_64
and works!

This Issue was closed on December 3rd 2020
Powered by GitHub Issue Mirror