If your site is configured with excessively strict security restrictions, you might see an error message saying that the GeoIP database cannot be downloaded, or located. If the message keeps apeparing even after you downloaded and installed it manually, as described in the article about the new geolocation features, please check the following:


1. Check that the GeoLite2-City.mmdb is in the correct location

The GeoIP database must be located in the uploads folder in your WordPress installation. This is usually in wp-content/uploads.


2. Check that the path of the uploads folder is correct, in your WordPress settings

The error message will show you where the AFC plugin is expecting the GeoIP database to be stored. You will see a paragraph saying something like "extract the file from the archive and copy it to /some/path/wp-content/uploads". The part in bold is the path configured in WordPress as the uploads folder. This must match the path to the folder where the GeoIP database is stored.


If the path doesn't match, you can fix it as follows:

  1. Go to WordPress Admin > Settings > Media
  2. Scroll towards the bottom of the page and find the setting labeled "Store uploads in this folder."
  3. Enter the correct path in the field (see screenshot, below)


3. If the path is correct, and the GeoIP database is in the correct location, check permissions

If you checked both the path and location of the GeoLite2-City.mmdb file, and thy are both correct, you should contact your hosting provider to make sure that there are no security restrictions that may affect the file_exists() function.


The file_exists() function is what the Aelia Foundation Classes plugin uses to verify that the geolocation database exists. If it's blocked, for any reason, the plugin will not be able to read the GeoIP database and will show the message. Allowing the execution of that function will solve the issue.


You can purchase our WooCommerce plugins from our online shop.