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 it
s 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.
Yes, of course, that`s the one.. i looked forward to 3.0 rc because this plugin was not for 2.17x
@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.
@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?
I will reopen the issue for now as it sounds like it might be an issue in Piwik @s1awa ?
But the problem with this plugin also exists for me:
Geoip2 plugin set up and detects my VPN IP 188.8.131.52 in Japan
After visiting the website with the same IP "Visitors in Real-time" shows USA using Default Location Provider
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.
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"
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.
So, in february we
ll know if its piwik
s fault or plugins.
Looking forward to it, thx
@Glisse1 did you maybe find out if it was a bug in Piwik core or in the plugin itself? Thanks!