- Issue created by @sah62
- πΊπΈUnited States bluegeek9
Hi sah62,
All the country codes are 2 characters.
Are you using Visitors GeoIP? The GeoIP module uses MaxMind's IP geolocation database.
Visitors derive the country from the browser language: en_US = United States and en_BG is Great Britain. This is not the most accurate way to get the country.
I will update the code the ensure the country code is valid. Invalid country codes will be reported as unknown.
P.S.
The dev branch of 3.0.x has visits. It reports the entry and exit pages. It is not ready for production. If on a non-production site, you can convert the data if you want to see a preview of what is to come.
- πΊπΈUnited States sah62 US
No, I'm not using Visitors GeoIP. After reading this, I think 419 is a valid value:
- πΊπΈUnited States bluegeek9
es_419 is a valid language code. Latin America is represented by 419. Visitors only stores es for the language, and it is trying to save 419 as the country.
We'll check if it is a valid country code before setting it. Visitors GeoIP takes precedence over the browser language/country.
The Visitors GeoIP module will give you more accurate country data. It requires a MaxMind account (free). I am considering adding support for Web IP GeoLocaton APIs, MaxMind, and others in Vistitors 3.0.0.
- Merge request !242Issue #3516265 by bluegeek9: Data too long for column 'location_country' β (Merged) created by bluegeek9
- Merge request !243Issue #3516265 by bluegeek9: Data too long for column 'location_country' β (Merged) created by bluegeek9
-
bluegeek9 β
committed 6e4e93c3 on 3.0.x
Issue #3516265: Data too long for column 'location_country'
-
bluegeek9 β
committed 6e4e93c3 on 3.0.x
-
bluegeek9 β
committed 82332eac on 8.x-2.x
Issue #3516265: Data too long for column 'location_country'
-
bluegeek9 β
committed 82332eac on 8.x-2.x
- πΊπΈUnited States bluegeek9
A new release will be made this week.
Automatically closed - issue fixed for 2 weeks with no activity.