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
Mysqli statement execute error : Data too long for column 'location_region' #15715
Comments
Which geolocation provider are you using in Matomo? |
@sgiehl any solution for this issue ?? Thanks |
It should actually not happen at all. Are you using dbip or maxmind database? and which one? And wher are your visitor many located? Maybe the database returns an invalid value 🤔 |
We are using dbip database. Visitors are from USA , EMEA and Asia region manily. |
Paid or free database? Can you see the values of those queries that have too long values? |
Actually, we are using GeoLite2-City from MaxMind, Its a free version we are using Thanks, |
@msonnad if the logging has no value for the region, it actually can't be too long. But maybe it's not printed in the log as some other value contains binary data causing the log to abort. |
We use a Intranet Location Geo plugin. |
@agrzchr15 The location_region column is meant for storing iso region codes. Storing something else is not officially supported and might break again with future updates |
Thanks for response The Idealflow: Have a GEO plugin which search an IP in a INTRANET IPAM database and populates the log_visit fields If the IP is not found in INTRANET IPAM chain to the "offical" MATOMO GEOIP plugin, and populate again this values. Currently we can select one single GEOIP plugin ( webserver, php, ) but no Chaining hook is available. All reports which use geo information can so work only with maxmind. Storing it not in the same values would need to duplicate all reports if collected elsewhere. Having just a bit more field size seems still the least impact to make matomo more useful and not to break lots of other things. If there is any chaining possible in matomo geo plugin, this would allow to select a GEO intranet plugin and the chain to the normal MATOMO GEO plugin ( and no patching every release) . So to topics: |
No, at #19323 it just reacts on some regions from maxmind which are sometimes to long. This request tries to find a way to have 2 locations providers chained. |
currently chaining means patching geo location provider and add ipam based location provider before. In case of not found in intra ipam it continues to maxmind based. |
if chaining option would be existing it would be a stable second geo plugin. |
We are getting this error very often.
ERROR Piwik\Tracker\Handler[2020-03-20 04:31:34 UTC] [8eafc] )
ERROR Piwik\Tracker\Handler[2020-03-20 04:31:34 UTC] [8eafc] Error query: Mysqli statement execute error : Data too long for column 'location_region' at row 1
ERROR Piwik\Tracker\Handler[2020-03-20 04:31:34 UTC] [8eafc] In query: INSERT INTO piwik_log_visit (idvisitor, config_id, location_ip, idsite, user_id, 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_city, location_country, location_latitude, location_longitude, location_region) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
ERROR Piwik\Tracker\Handler[2020-03-20 04:31:34 UTC] [8eafc] Parameters: array (
No Data s tracking for location_region column.
And the plugin UserCounty and UserCountryMap both are in an active state.
how to resolve this. This error is filling our logs file memory.
Currently, the column length is char(3)
We are using ,
PIWIK : 3.13.2
Mysql : 5.7.19
Thanks,
Manjunath S S
The text was updated successfully, but these errors were encountered: