Git Product home page Git Product logo

ip2location / ip2location-piwik Goto Github PK

View Code? Open in Web Editor NEW
30.0 11.0 18.0 503 KB

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.

Home Page: http://www.ip2location.com

PHP 97.64% Twig 2.36%
geolocation database ip2location-piwik ip2location ip-geolocation ip-database ip-lookup matomo

ip2location-piwik's Introduction

IP2Location Matomo (Piwik)

Latest Stable Version Total Downloads

Description

This IP2Location plugin enables more accurate location lookup in your Matomo (Piwik) visitor log.

You need a IP2Location BIN database to make this plugin works. Database is available for free at

https://lite.ip2location.com or https://www.ip2location.com for a commercial database.

Installation / Update

  1. Login into your Matomo administrator page.
  2. Go to System > Plugins.
  3. Click on the Install New Plugins button at the bottom of the page.
  4. Search for IP2Location from the plugin page.
  5. Install and activate the plugin.
  6. Upload a IP2Location BIN database to misc folder.
  7. Navigate to System > IP2Location page to make sure the BIN database is detected by the plugin.
  8. Go to System > Geolocation.
  9. Select IP2Location as provider and save.

Configure settings

You can visit IP2Location Settings by selecting the menu on the left pane (under System). This plugin support geolocation lookup using IP2Location BIN file and web service.

To use BIN file, please download it from the below links

To use web service, please sign up for the API key at

How to import the IP2Location BIN file for usage

You should copy the BIN file into /var/www/html/misc folder (for default installation). If you customize the installation path, it should be the misc folder inside your root folder.

If you are using Piwik docker image, then you can use below command to copy the BIN into piwik container.

sudo docker cp {your_local_bin_file_location} {your_piwik_container_name}:/var/www/html/misc

FAQ

How to I configure the plugin?

Login as administrator, then go to System > IP2Location.

Where to download IP2Location database?

You can download IP2Location database for free at https://lite.ip2location.com or commercial version from https://www.ip2location.com

Can I use IP2Location Web service?

Yes, please purchase credits from https://www.ip2location.com/web-service and insert your API key in the settings page.

Change Log

3.1.18

  • Added better handler when IP2Location BIN database file is not loaded.

3.1.17

  • Updated install instructions.

3.1.14

  • Fixed class name error.

3.1.13

  • Fixed array assignment issues.

3.1.12

  • Fixed syntax error in PHP 7.1.

3.1.11

  • Fixed class error.

3.1.10

  • Minor changes and fixes.

3.1.9

  • Update README.md

3.1.8

  • Updated version due to licensing error.

3.1.7

  • Updated version due to licensing error.

3.1.6

  • Added instructions for automated IP2Location database update.

3.1.5

  • Added screenshot and FAQ.

3.1.4

  • Bugs and typos fixed.

3.1.2

  • Updated version number.

3.1.1

  • Removed testing data.

3.1.0

  • Added IP2Location settings menu.

  • Added support for IP2Location Web service.

3.0.0

  • Removed compatibilities with Piwik 2.x. Version 2.3.0 is the last version supporting Piwik 2.x.

  • Prevented plugin from overwrite existing location provider.

  • Appeared as a separated location provider under admin area.

  • Supported visitor log and live view directly in admin area.

  • Database file no longer stored within plugin folder to prevent deletion/modification during updates.

  • Database file is stored in /path/to/piwik/misc/ starting this version.

2.3.2

  • Fixed error when BIN file is not readable. Added backward compatible.

2.3.0

  • Updated to IP2Location PHP 8.0.2 library.

2.2.0

  • Added custom report to view additional information such as Time Zone, ZIP code, usage type.

2.1.0

  • Updated to IP2Location 7.0.0 library

2.0.0

  • First release for Piwik 2.0

IPv4 BIN vs IPv6 BIN

Use the IPv4 BIN file if you just need to query IPv4 addresses.

Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.

License

GPL v3 / fair use

Support

Website: https://www.ip2location.com Email: [email protected]

ip2location-piwik's People

Contributors

chrislim2888 avatar ip2location avatar jpbede avatar kzeni avatar mnapoli avatar sgiehl avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ip2location-piwik's Issues

Cannot get location

Hello Team,
I have installed IP2Location module already and I got problem in my matomo cannot see my current ISP information. Please check this message.

According to this provider, your current location is:

-, -
UB�-�0-1.ir�0-72-87-41-phase3telecom.com�0-locallink.com.br�000-inter-fas.com.ar

Org: Unknown
ISP: -
Refresh
Lookup Mode: IP2Location BIN Database
Database File: IP2PROXY-LITE-PX8.BIN

No Menu after update to 2.3.0

Updated to 2.3.0, got succes message after activating but don't get any Menu entry (and no data)

Piwik Version: 3.0.0
MySQL Version: 5.1.73
PHP-Version: 7.0.5
Latest DBs in /data dir

Piwik fatal error when setting geolocation with IP2

Hello, happy new year

I recently uninstalled free GeoIP2 that doesn’t work well with IPV6 (no city info)
Then,
I installed the last IP2Location plugin from Piwik 3.0.0 marketplace (dated dec. 23 2016)
Then I uploaded IP2LOCATION-LITE-DB3.IPV6.BIN (dated jan 1st 2017) to /misc with filezilla in binary format
piwik crashes into the fatal error everytime I go to Settings/Geolocation.

"Call to undefined function IP2Location\bcadd() in /srv/data/web/vhosts/www.imagimuse.net/htdocs/piwik/plugins/IP2Location/lib/IP2Location.php 992 using PHP 5.6.25-1+020160829102648.9+jessie1.gbpbb5cad"

No error if I remove the database.
Same issue after deactivating-reactivating IPV2 plugin. Same issue if the plugin is manually uploaded.

The rest of piwik is working fine.
Have you any idea of what I should do?

Regards

Server-Error due to "call to undefined function" and plugin causing Server_error 500 as well

Hi,

Since a few month we are receiving ServerError 500 when using the following URL:

https://piwik.re-in.de/matomo.php?action_name=voelkner%20-%20direkt%20günstiger%20|%20Elektronik%2C%20Technik%2C%20Werkzeug%20%26%20mehr&idsite=1&rec=1&r=858341&h=9&m=17&s=58&url=https%3A%2F%2Fwww.voelkner.de%2Fmy%2Forders_details.html%3Foid%3D159189407%26page%3D1&urlref=https%3A%2F%2Fwww.voelkner.de%2Fmy%2Forders.html&uid=135003855&_id=0e560923070c321a&_idts=1587712534&_idvc=1&_idn=0&_refts=0&_viewts=1587712534&send_image=1&pdf=0&qt=0&realp=0&wma=0&dir=0&fla=0&java=0&gears=0&ag=0&cookie=1&res=1920x1080&_cvar={"1"%3A["B2"%2C"3"]%2C"2"%3A["0"%2C"1"]%2C"3"%3A["WKDB"%2C"0"]%2C"4"%3A["usr"%2C"QYSVVYCSS"]%2C"5"%3A["1"%2C"0"]}&gt_ms=680&pv_id=2dAjC3

I could track down the issue to:

#0 /var/www/html/plugins/IP2Location/lib/IP2Location.php(1617): IP2Location\Database::ipVersionAndNumber('2a01:c22:7640:5...') #1 /var/www/html/plugins/IP2Location/LocationProvider/IP2Location.php(92): IP2Location\Database->lookup('2a01:c22:7640:5...', 1001) #2 /var/www/html/plugins/UserCountry/VisitorGeolocator.php(145): Piwik\Plugins\IP2Location\LocationProvider\IP2Location->getLocation(Array) #3 /var/www/html/plugins/UserCountry/VisitorGeolocator.php(115): Piwik\Plugins\UserCountry\VisitorGeolocator->getLocationObject(Object(Piwik\Plugins\IP2Location\LocationProvider\IP2Location), Array) #4 /var/www/html/plugins/UserCountry/Columns/Base.php(55): Piwik\Plugins\UserCountry\VisitorGeolocator->getLocation(Array, true) #5 /var/www/html/plugins/UserCountry/Columns/City.php(43): Piwik\Plugins\UserCountry\Columns\Base->getLocationDetail(Array, 'city_name') #6 /var/www/html/core/Tracker/Visit.php(482): Piwik\Plugins\UserCountry\Columns\City->onNewVisit(Object(Piwik\Tracker\Request), Object(Piwik\Tracker\Visitor), Object(Piwik\Tracker\ActionPageview)) #7 /var/www/html/core/Tracker/Visit.php(288): Piwik\Tracker\Visit->triggerHookOnDimensions(Array, 'onNewVisit') #8 /var/www/html/core/Tracker/Visit.php(203): Piwik\Tracker\Visit->handleNewVisit(NULL) #9 /var/www/html/core/Tracker.php(155): Piwik\Tracker\Visit->handle() #10 /var/www/html/core/Tracker/Handler.php(57): Piwik\Tracker->trackRequest(Object(Piwik\Tracker\Request)) #11 /var/www/html/core/Tracker.php(135): Piwik\Tracker\Handler->process(Object(Piwik\Tracker), Object(Piwik\Tracker\RequestSet)) #12 /var/www/html/core/Tracker.php(112): Piwik\Tracker->track(Object(Piwik\Tracker\Handler), Object(Piwik\Tracker\RequestSet)) #13 /var/www/html/piwik.php(76): Piwik\Tracker->main(Object(Piwik\Tracker\Handler), Object(Piwik\Tracker\RequestSet)) #14 {main}

as well as the errors above due to debugging I get an error message when I try to connect to my matomo instance inside EDGE Browser. The error occurs as follows:

image

Maybee you could take care for this.

Regards, Marcel

Incompatible with Piwik 3

Hello devs,

can we expect an update for your plugin that makes it compatible with Piwik 3 again?
Thanks a lot for your response.

Regards Johannes

After upgrading to version 3.1.0 geo information is wrong

Hi all,

some days before I have successfully upgrade to latest plugin version 3.1.0. Since the upgrade, it seems to be the GEO informations are wrong. Always the same information is provided:

(37.406, -122.079) Mountain View, CA United States

I have repeat the test with different german IP addresses but the GEO ip information is always the same.

Current database is --> IP2LOCATION-LITE-DB11.BIN
database date is: 2017-05-30
Piwik Version: Piwik 3.0.4

Can anyone help on this issue?

Thank you in advanced

IP2Location not working as expected

get loads of errors including :
Warning - unpack(): Type V: not enough input, need 4, have 0
What is missing?

Complete log:

WARNING: /plugins/IP2Location/lib/IP2Location.php(1676): Warning - unpack(): Type C: not enough input, need 1, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(145): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(141): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(136): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1676): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(150): Notice - Trying to access array offset on value of type bool - Matomo 4.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: getSystemCheck, In CLI mode:

Control the WS package while using IP2Location @Matomo (Piwik)

While a test setup with https://github.com/ip2location/ip2location-piwik I didnt find any GUI option to control the WS packages according to https://www.ip2location.com/web-service/ip2location -> Pricing

E.g. switching from WS6 to WS4 to manage credit spending

I was looking into

$response = Http::sendHttpRequest('https://api.ip2location.com/v2/?key=' . Option::get('IP2Location.APIKey') . '&ip=' . $ip . '&format=json&package=WS6', 30);

Value for location_country too long

I have moved Matomo to a new server and ran into several issues, most of them could be resolved by searching the web. But now I am stuck with SQL errors due to the country:

[Thu Jun 06 11:01:07.902574 2019] [php7:notice] [pid 13791] [client] Error in Matomo (tracker): Error query: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'location_country' at row 1 In query

It tries to set longer name like "sjaelland" or "dnipropetrovska oblast" as country but the country column in the log_visit table is set to be three char long, only.

I am using the latest IP2Location plugin 3.1.14 with Matomo 3.9.1 and downloaded a fresh copy of the database binary today (DB3).

Two examples of full queries showing errors:

INSERT INTO log_visit (idvisitor, config_id, location_ip, idsite, visit_first_action_time, visit_goal_buyer, visit_goal_converted, visit_last_action_time, visitor_days_since_first, visitor_days_since_order, visitor_returning, visitor_count_visits, visit_entry_idaction_name, visit_entry_idaction_url, visit_exit_idaction_name, visit_exit_idaction_url, visit_total_actions, visit_total_interactions, visit_total_searches, referer_keyword, referer_name, referer_type, referer_url, location_browser_lang, config_browser_engine, config_browser_name, config_browser_version, config_device_brand, config_device_model, config_device_type, config_os, config_os_version, visit_total_events, visitor_localtime, visitor_days_since_last, config_resolution, config_cookie, config_director, config_flash, config_gears, config_java, config_pdf, config_quicktime, config_realplayer, config_silverlight, config_windowsmedia, visit_total_time, location_country, location_provider) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) Parameters: array ( 0 => '\xeb\x92\xc4HF\xf8\xbbw', 1 => '\xdc\x7f\xb8\xdd\xb3\x87y\xe9', 2 => '*\x02\x16\xf0' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '', 3 => 39, 4 => '2019-06-06 09:01:07', 5 => 0, 6 => 0, 7 => '2019-06-06 09:01:07', 8 => 0, 9 => 0, 10 => 1, 11 => 8, 12 => 202990, 13 => 202991, 14 => 202990, 15 => 202991, 16 => 1, 17 => 1, 18 => 0, 19 => NULL, 20 => NULL, 21 => 1, 22 => 'https://example.com', 23 => 'de', 24 => 'Gecko', 25 => 'FF', 26 => '67.0', 27 => '', 28 => 'generic desktop', 29 => 0, 30 => 'WIN', 31 => '7', 32 => 0, 33 => '11:01:07', 34 => '0', 35 => '1920x1080', 36 => 1, 37 => 0, 38 => 1, 39 => 0, 40 => 0, 41 => 0, 42 => 0, 43 => 0, 44 => 0, 45 => 0, 46 => 0, 47 => 'sjaelland', 48 => 'regioit.de', )

INSERT INTO log_visit (idvisitor, config_id, location_ip, idsite, visit_first_action_time, visit_goal_buyer, visit_goal_converted, visit_last_action_time, visitor_days_since_first, visitor_days_since_order, visitor_returning, visitor_count_visits, visit_entry_idaction_name, visit_entry_idaction_url, visit_exit_idaction_name, visit_exit_idaction_url, visit_total_actions, visit_total_interactions, visit_total_searches, referer_keyword, referer_name, referer_type, referer_url, location_browser_lang, config_browser_engine, config_browser_name, config_browser_version, config_device_brand, config_device_model, config_device_type, config_os, config_os_version, visit_total_events, visitor_localtime, visitor_days_since_last, config_resolution, config_cookie, config_director, config_flash, config_gears, config_java, config_pdf, config_quicktime, config_realplayer, config_silverlight, config_windowsmedia, visit_total_time, location_country, location_provider) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) Parameters: array ( 0 => '&\x7f\x98\xfc\x1b^\x1aK', 1 => '\xaf\x8a%\xdc\xf4\x06\x80\xfc', 2 => ' \x03' . "\\0" . '\xca\xef\x18' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '' . "\\0" . '', 3 => 1, 4 => '2019-06-06 09:23:10', 5 => 0, 6 => 0, 7 => '2019-06-06 09:23:10', 8 => 0, 9 => 0, 10 => 0, 11 => 1, 12 => 209015, 13 => 38827, 14 => 209015, 15 => 38827, 16 => 1, 17 => 1, 18 => 0, 19 => NULL, 20 => NULL, 21 => 1, 22 => 'https://example.com', 23 => 'de', 24 => 'Gecko', 25 => 'FF', 26 => '67.0', 27 => '', 28 => 'generic desktop', 29 => 0, 30 => 'WIN', 31 => '10', 32 => 0, 33 => '11:23:12', 34 => '0', 35 => '1600x900', 36 => 1, 37 => 0, 38 => 0, 39 => 0, 40 => 0, 41 => 0, 42 => 0, 43 => 0, 44 => 0, 45 => 0, 46 => 0, 47 => 'dnipropetrovska oblast', 48 => 't-ipconnect.de', )

Is there something wrong with my Matomo database or how the IP2Location DB is read? Which version of the free DB do you recommend?

My mistake - please delete the issue

Hello,

Currently, IP2Location plugin does not offer regions information in Piwik - all regions are being reported as "Unknown".

Seems like this DB / Plugin doesn't offer Region code (only region name).
UserCountry module is looking for this code:
https://github.com/piwik/piwik/blob/master/plugins/UserCountry/Columns/Region.php#L53
https://github.com/piwik/piwik/blob/master/plugins/UserCountry/LocationProvider.php#L56

To make IP2Location plugin working with Piwik, it needs to offer also region codes, as MaxMindDB:
http://www.maxmind.com/download/geoip/misc/region_codes.csv

To make this IP2Locatation plugin compatible with Piwik mapping for the region code (like this mentioned above from MaxMind) is needed. Otherwise, this plugin seems to be useless for customers.

Regards,
Tomasz

Ip2location not working after update to v3.1.10

Hi

After update to v3.1.10 the plugin “ip2location” no longer works.

I’m getting following error:

[28-May-2019 05:52:34 UTC] PHP Fatal error: Uncaught Error: Class ‘IP2Location\Database’ not found in […]/plugins/IP2Location/LocationProvider/IP2Location.php:86
Stack trace:
#0 […]/plugins/UserCountry/VisitorGeolocator.php(145): Piwik\Plugins\IP2Location\LocationProvider\IP2Location->getLocation(Array)
#1 […]/plugins/UserCountry/VisitorGeolocator.php(115): Piwik\Plugins\UserCountry\VisitorGeolocator->getLocationObject(Object(Piwik\Plugins\IP2Location\LocationProvider\IP2Location), Array)
#2 […]/plugins/UserCountry/Columns/Base.php(50): Piwik\Plugins\UserCountry\VisitorGeolocator->getLocation(Array, true)
#3 […]/plugins/UserCountry/Columns/City.php(43): Piwik\Plugins\UserCountry\Columns\Base->getLocationDetail(Array, ‘city_name’)
#4 […]/core/Tracker/Visit.php(460): Piwik\Plugins\UserCountry\Columns\City->onNewVisit(Object(Piwik\Tracker\Request), Object in […]/plugins/IP2Location/LocationProvider/IP2Location.php on line 86

When i click on “ip2location” in the matomo-settings, i’m getting following error/report:

A fatal error occurred

The following error just broke Matomo (v3.9.1):

Class ‘IP2Location\Database’ not found
in […]/plugins/IP2Location/API.php line 56
Troubleshooting

Follow these steps to solve the issue or report it to the team:
If you have just updated Matomo to the latest version, please try to restart your web server. This will clear the PHP opcache which may solve the problem.
If this is the first time you see this error, please try refresh the page.
If this error continues to happen, we appreciate if you send the error report to the Matomo team.

Does someone have the same issue?

Best regards
maisen20

Matomo IP2Location version 4.0.6

The version 4.0.6 is automatically installed with the latest upgrade from Matomo. However, it does not work. How can I downgrade to 4.0.5?

Warning - unpack(): Type V: not enough input, need 4, have 0 - Piwik 3.0.4

Hello,

I installed the plugin via Piwik Marketplace and uploaded the .bin files in /piwik/misc.

Now when I want to access System > IP2Location I get spammed with the following error:

WARNING: /.../piwik/plugins/IP2Location/lib/IP2Location.php(1106): Warning - unpack(): Type V: not enough input, need 4, have 0 - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

Thanks in advance!

Call to undefined method Piwik\Piwik::checkUserIsSuperUser()

Hi,
We installed and activated the plugin IP2Location. On clicking the menu “IP2Location” under “Settings” page, we get attached error.
“Call to undefined method Piwik\Piwik::checkUserIsSuperUser() in \Piwik\plugins\IP2Location\Controller.php 30 using PHP 5.5.12”
ip2location error

IP2Location stops Piwik working

Hi

When I install the IP2Location plugin my installation of Piwik stops working. I have made many attempts. Each time I must do a clean install of Piwik to get Piwik running again. Please could you advise what is going wrong.
Regards,
Tony

Issue regarding IP2Location-Piwik after uploading the db (.BIN file)

Hi friends ,

This is regarding the IP2Location plugin which i downloaded through piwik marketplace.

I followed the instructions as given in this link http://www.ip2location.com/developers/piwik
I am facing the issue after uploading the IP2Location database file (.BIN) from DB3.LITE (free) into /plugins/IP2Location/data.

So before uploading the .BIN file i get this message:
image

And after uploading the .BIN file i get this message :
image

I tried using all other databases i.e DB3.LITE, DB5.LITE..which are the latest versions.
In all the case i am getting the same error message as shown above.

So Please help me to resolve this issue and help me to get the accurate working of this plugin.

Thanks in advance.

Warning - unpack(): Type C: not enough input, need 1, have 0

Hello,
I'm getting the following messages when browsing on the CoreAdminHome module's page.

WARNING: /var/www/piwik/plugins/IP2Location/lib/IP2Location.php(1052): Warning - fread(): Length parameter must be greater than 0 - Matomo 3.13.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)

WARNING: /var/www/piwik/plugins/IP2Location/lib/IP2Location.php(1123): Warning - unpack(): Type C: not enough input, need 1, have 0 - Matomo 3.13.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)

Is it related to IP2Location or should I only report on Matomo forum?

Thank you,
Yann

Incorrect .BIN file picked

I installed also IP2Proxy addon and uploaded my 2 BIN files into misc/ folder

-rw-r--r--  1 root  root   96137254 Nov 29 17:00 IP2PROXY-IP-PROXYTYPE-COUNTRY.BIN
-rw-r--r--  1 root  root  379783309 Nov  1 13:00 IPV6-COUNTRY-REGION-CITY-ISP.BIN

However this results in issues, as the IP2Location plugin picks IP2Proxy BIN file (maybe as its alphabetically first?) for IP2Location and this makes ip2location lookups broken.

Call to undefined function IP2Location\bcadd()

Hello, I have installed plugin on my matomo site and I got this problem please help to check.
Call to undefined function IP2Location\bcadd() in /var/www/html/piwik/plugins/IP2Location/lib/IP2Location.php 995 using PHP 7.3.17-1 ubuntu16.04.1

Call to undefined function with IPv6

Call to undefined function Piwik/Plugins/IP2Location/gmp_strval() in
/www/piwik/plugins/IP2Location/Lookup.php 402 using PHP 5.6.9

I get this error when I try to query the DB9 Lite with an IPv6 address.
IPv4 is working.

Custom location for IP2Location bin files

Currently, the IP2Location bin files have to be located in the source tree under $PIWIKI_SRC/misc . There is a whole bunch of things upstream under misc - https://github.com/matomo-org/matomo/tree/5.x-dev/misc/ . When deploying with docker, we delete the old matomo image and replace with new matomo image. Every time we do this, we have to remember to copy over the ip2location database. misc cannot be mounted as a volume in docker either and be part of backup because there is already some upstream source code there.

Is it possible to set an alternate location for the IP2Location bin files? This will immensely help deployment.

Blocking bug after updating the IP2Location plugin (June 23, '17)

Hello,

I have been using the Piwik IP2Location pluging for months, even years without any issue. I use the DB3 lite DB for IPv6. Countries and cities have always been reported in a satisfactoy way. Since the yesterday ( June 23, '17) update to the new version of the plugin, cities and countries are no longer reported correctly, all the IP addresses are reported as belonging to the US. My own IP address was previously reported as in Belgium as it is and -out of of sudden-, it was reported in the US, Montana.
The DB3 bin file remained unchanged.
No reload of the DB3 file could solve the issue.

I guess there is an issue whith the query of the DB3 file by the new plugin.

Is there any way to roll back to the previous versoion of the plug in before a fiw is available for that issue ?

Patricia.

Location not working after upgrade to v3: unpack(): Type C: not enough input

Hi,

after upgrading to IP2Location v3 I get the following warning (and wrong location outputs):

WARNING: /var/www/piwik/plugins/IP2Location/lib/IP2Location.php(1118): Warning - unpack(): Type C: not enough input, need 1, have 0 - Piwik 3.0.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

I have downloaded most current DBv9 (v4 and v6) and extracted them to piwik/misc as requested. Seems like there is a bug with reading the contents of the database.

As location I get:

termaritzburg Pietra Ligure Pietracatella�Pietralunga�Pietrapaola�Pietrari�Pietrasanta�Pietrosella�Pi

Org: unbekannt
ISP: unbekannt
Refresh
Database File: IP2LOCATION-LITE-DB9.BIN

File permissions:

-rw-rw-r--  1 www-data www-data 106139446 Dec 15 20:00 IP2LOCATION-LITE-DB9.BIN
-rw-rw-r--  1 www-data www-data 121104943 Dec 15 20:00 IP2LOCATION-LITE-DB9.IPV6.BIN

Best regards
Stefan

Error on piwik 2.12.0

With this plugin activated the new version of piwik fails...
Please solve the problem as soon as possible.

Can't change Location provider to IP2Location

we using Bitnami docker version of Matomo , Plugin is installed and database is configured , but in geolocation can't change plugin provider to IP2Locations because it shows Not Installed. See screenshots attached.

Matomo version: 4.10.1
MySQL version: 5.7.37-google
PHP version: 8.0.19

IP2Location_config
Loc_provider
Matomo_plugins

getRegionCode - not called correctly

In our case we needed to update the function call from

$regionCode = $this->getRegionCode(strtoupper($countryCode), $regionName);

to

$regionCode = $this->getRegionCode(strtoupper($countryCode), strtoupper($regionName));

otherwise the regions were not displayed.

Maybe one can check and make a Pull request for this :)

IP2Location broken after installing Matomo 4.8.0 --------------------- OPEN AND PENDING

WARNING: /plugins/IP2Location/lib/IP2Location.php(1676): Warning - unpack(): Type C: not enough input, need 1, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(145): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(141): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(136): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1676): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1663): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/lib/IP2Location.php(1602): Notice - fread(): read of 8192 bytes failed with errno=21 Is a directory - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode: false)
×
WARNING: /plugins/IP2Location/LocationProvider/IP2Location.php(150): Notice - Trying to access array offset on value of type bool - Matomo 4.8.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Installation, Action: systemCheckPage, In CLI mode:

Lack of dashboard integration

I don't know if I've missed something, but it seems this plugin only add a section in Admin section of piwik in order to copy paste an IP?

What about some seemless integration with a widget for the dashboard?

Matomo 5 compatibility

Dear Matomo Plugin Author,
We are excited that Matomo 5.0.0 is on the horizon, and we would greatly appreciate your assistance in ensuring that your plugin remains compatible with this upcoming release. Maintaining compatibility will enable Matomo users to seamlessly use your plugin after they upgrade to Matomo 5. (If the plugin is not updated to be compatible with Matomo 5, then whenever a user will upgrade to Matomo 5, the plugin would be automatically disabled to prevent issues.)

Updating your plugin to be Matomo 5 compatible is a straightforward process and should not require a significant time investment. You can find more information about updating your plugin at: https://developer.matomo.org/guides/migrate-matomo-4-to-5

Thank you for your ongoing support and commitment to the Matomo community.
Your contribution is really appreciated!

The Matomo Team

PS: we’re also available to help if you have any question about making the plugin compatible.

I took the liberty of forking this project and making the necessary changes. If you create a 5.x-dev branch, merge my changes into that branch, and create a new release, you should be good to go.

Unpack v3.1.8 - Matomo 3.1.8

WARNING: /var/www/html/piwik/plugins/IP2Location/lib/IP2Location.php(1110): Warning - unpack(): Type V: not enough input, need 4, have 0 - Matomo 3.8.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

In the plugin settings i have this error: Your IP2Location BIN file version is outdated. Please visit http://www.ip2location.com to download the latest BIN file."

But have a fresh bin file downloaded.

Translations using Weblate

Hello,

Lukas from Matomo team here. We are currently in the process of moving our translations from Transifex to Weblate (matomo-org/matomo#17907).
As Weblate makes it easier to add a git repository as a component and merge back updated translations via pull requests, I thought it would be great if more plugins in Matomo were available in the users languages if someone is interested in translating them.

If you are interested in adding your plugin, simply comment here, and I'll help you with the setup.

WARNING: /var/www/html/plugins/IP2Location/lib/IP2Location.php(1121): Warning - unpack(): Type C: not enough input, need 1, have 0

Hello,

I am using DB3-IP-COUNTRY-REGION-CITY.BIN.
When I tried to configure plug-in, errors were shown as bellow.

WARNING: /var/www/html/plugins/IP2Location/lib/IP2Location.php(1121): Warning - unpack(): Type C: not enough input, need 1, have 0 - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

Please advise how I can fix it.

Thank you,
Tak

Update plugin.json required PHP version

Hi there,

I'm Thomas from Piwik. We recently made some changes on the Marketplace and changed how versions are defined. In your plugin.json it defines:

{
        "piwik": ">=2.12.0",
        "php": "5.3.20"
    }

but in future updates it should include the >= and ideally include an upper version constraint:

{
        "piwik": ">=2.12.0,<=3.0.0-b1",
        "php": ">=5.3.20"
    }

Sorry for inconvenience and cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.