geoip-detect

Here is a list of common problems and how to debug them.

General

Add the following line to your /wp-config.php:

define('GEOIP_DETECT_DEBUG', true);

This will enable more warnings that might be useful for debugging purposes.

Q0: Country X is detected for my IP, but I know country Y is correct?

This can be because of one of these 3 common problems:

Q1: He says my IP is X, but I know it is Y?

How to diagnose:

Possible solutions

Q2: Sometimes the IP detection shows the correct results, but sometimes not?

How to diagnose:

Possible solutions:

Q3: How can I check if the plugin gets it wrong, or the database provider has the correct information?

While some are more precise than others (see Which data source should I choose?), no data source has 100% accuracy. There are IPs with no data at all, IPs with only country, and IPs with the wrong city (even the wrong country sometimes).

The plugin takes the data of the data sources and tries to add data (such as the timezone, flag, etc.). So normally, it does not remove data (except if I do a bad mistake), and it certainly doesn’t change data to a different country/city (except if you fiddle around with the Wordpress filters of the plugin).

How to diagnose:

If they have the wrong information, contact them about it, they might correct the information in their database.

If it is correct at their site, but not correct/missing in the plugin, then write me a bug report (see Q9).

Q9: Which informations do you need for a bug report?

Most important:

Important context information: