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

GeoIP2 installation ignored, piwik falls to DEFAULT provider #11034

Closed
Glisse1 opened this issue Dec 18, 2016 · 11 comments
Closed

GeoIP2 installation ignored, piwik falls to DEFAULT provider #11034

Glisse1 opened this issue Dec 18, 2016 · 11 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@Glisse1
Copy link

Glisse1 commented Dec 18, 2016

Hello.

I have installed the new GEOIP2 provider, with LITE database, activated the plugin and selected it with no problem. But for some reason also I select this provider, on the front-end (i mean, in stats, live plugin, etc) piwik falls back and gives me just the useless DEFAULT provider. Dont know if its plugins fault, but i`ve been waiting for 3 years to get access to the highly enhanced geoip2 which is 3 times bigger than the old geoip1, so this is a blow for me :(

Screenshots with my own IP case.

snip1
snip2

@tsteur
Copy link
Member

tsteur commented Dec 18, 2016

Did you install http://plugins.piwik.org/GeoIP2 ?

@Glisse1
Copy link
Author

Glisse1 commented Dec 18, 2016

Yes, of course, that`s the one.. i looked forward to 3.0 rc because this plugin was not for 2.17x

@tsteur
Copy link
Member

tsteur commented Dec 18, 2016

@Glisse1 do you mind creating the issue on https://github.com/diabl0/piwik-geoip2 ? We can't provide support for third party plugins.

@tsteur tsteur closed this as completed Dec 18, 2016
@tsteur tsteur added the wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. label Dec 18, 2016
@tsteur tsteur added this to the 3.0.0-rc milestone Dec 18, 2016
@slawa-dev
Copy link

@tsteur This plugin uses GeoLite2-City.mmdb file format.

When trying to use "Setup automatic updates of GeoIP databases" with this type of database (http://dev.maxmind.com/geoip/geoip2/geolite2/)
The updater fails with an error because of the .mmdb file ending. Can it be added to the autoupdater or does the plugin author needs to write his own update function?

To reproduce upload GeoLite2-City.mmdb to misc folder and use the url (http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz) to autoupdate.

@Glisse1
Copy link
Author

Glisse1 commented Dec 19, 2016

@S1awa i did not manage to make it work, that is make geolite2-city be the one used instead of the default provider as you can see in the posted screenshots, let alone auto-update. Is this working for you?

@tsteur
Copy link
Member

tsteur commented Dec 19, 2016

I will reopen the issue for now as it sounds like it might be an issue in Piwik @S1awa ?

@tsteur tsteur reopened this Dec 19, 2016
@slawa-dev
Copy link

slawa-dev commented Dec 20, 2016

@tsteur I think this ticket is about a different issue not auto update. So I made a new ticket: #11049

But the problem with this plugin also exists for me:
Geoip2 plugin set up and detects my VPN IP 103.15.187.53 in Japan
geoip2

After visiting the website with the same IP "Visitors in Real-time" shows USA using Default Location Provider
visitors

I don't know if this is an issue of Piwik or 3rd party plugin.
I hope you can reopen the ticket and confirm it is not an issue of Piwik's rather new 3rd party plugin integration for GeoIP.
I also made the plugin author aware of this issue.

@slawa-dev
Copy link

slawa-dev commented Dec 20, 2016

Another example with IP in Germany. It is definitely not using the selected plugin for geoip but the browser language of the "Default Location Provider"
geoip2
visitors

@diabl0
Copy link

diabl0 commented Dec 24, 2016

@Glisse1
Unfortunately i'm on christmas vacation and cannot investigate this in details, but diabl0/piwik-geoip2 it's very simple - it gets IP address from Piwik (https://github.com/diabl0/piwik-geoip2/blob/master/LocationProvider/GeoIP2.php#L141), runs it thru maxmind-db/reader library () and rewrites results to Piwik expected format. There is no checks for browser accepted language and any other logic (except rewriting region/country codes from ISO 3166-2 Code to FIPS 10.2).

@S1awa currently diabl0/piwik-geoip2 doesn't support autoupdating.

In jan/feb i will probably get back to our piwik integration project and will have more time for more extended testing, and then i'm also planing to implement autoupdate.

@Glisse1
Copy link
Author

Glisse1 commented Dec 24, 2016

So, in february well know if its piwiks fault or plugins.

Looking forward to it, thx

@mattab mattab added Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. Bug For errors / faults / flaws / inconsistencies etc. and removed wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. labels Dec 25, 2016
@Glisse1 Glisse1 closed this as completed Feb 18, 2017
@mattab
Copy link
Member

mattab commented Feb 28, 2017

@Glisse1 did you maybe find out if it was a bug in Piwik core or in the plugin itself? Thanks!

@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

5 participants