ip2location / ip2location-piwik

IP2Location geolocation service to lookup a visitor's location in Matomo (Piwik) 4.x, 5.x. This service allows you to determine the country, region, city, coordinates, zip code, time zone, ISP, domain, MCC, MNC, mobile brand name, elevation, usage type, address type, IAB category, and more, associated with any given IP address.
http://www.ip2location.com
32 stars 18 forks source link

Fixed the remaining instances of `path.ip2location` that the 4.1.1 release left behind. #75

Closed KZeni closed 1 year ago

KZeni commented 1 year ago

Version 4.1.1 of this plugin was released to fix an error introduced by the StaticContainer::get('path.ip2location') being used instead of the PIWIK_DOCUMENT_ROOT . '/misc/' that was otherwise used until version 4.1.0 (then causing issues in 4.1.0 with that updated code trying to pull path.ip2location). However, 4.1.1 only fixed the first instance of this & left behind all other instances that are also potentially causing issues (per https://github.com/ip2location/ip2location-piwik/commit/d707ddc6afe7c3c43080d2edf9f653db2a619b2b).

As such, this makes it so the fix from 4.1.1 is applied to all other spots where it's potentially needed (just fixing that one spot like what 4.1.1 did wasn't sufficient for my setup, but this update has it back to working normally by simply applying that same fix to more than one spot.)

Of course, I've also mentioned this as an issue here: https://github.com/ip2location/ip2location-piwik/issues/76