Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() #16877

Closed
bst2002git opened this issue Dec 3, 2020 · 5 comments
Closed

Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() #16877

bst2002git opened this issue Dec 3, 2020 · 5 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@bst2002git
Copy link

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
Copy link
Member

sgiehl commented Dec 3, 2020

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

@bst2002git
Copy link
Author

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

@sgiehl
Copy link
Member

sgiehl commented Dec 3, 2020

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
Copy link
Author

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
Copy link
Author

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

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants