Starting from version 1.6.0.150724, the Aelia Foundation Classes (also called AFC) use the new MaxMind Geolite2 Database, with support for States and Provinces. This new geolocation database is larger than the one used previously, but it offers a more accurate resolution, and it made it possible to add support for State and Province selection in the Tax Display by Country plugin.


To avoid distributing an overly large plugin, the Aelia Foundation Classes do not include the MaxMind database. Instead, the plugins can download it and install it automatically on your site. The plugin also updates the database regularly, to keep geolocation resolution accurate.


How to install the database manually

In normal circumstances, the Aelia Foundation Classes plugin downloads the GeoIP database the first time you activate it. No manual intervention is required. In case something prevents the automatic installation of the the database, you should see a message explaining how to install it manually. You can find the same instructions below, for your convenience.


  1. Download the Geolite2 City database from the MaxMind site: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz. This is a compressed file, which contains the actual database.
  2. Extract file GeoLite2-City.mmdb from the compressed archive.
  3. Copy the extracted file to your site, in /wp-content/uploads folder.
  4. Ensure that the file is writable by your WordPress installation. Its permissions should be 755, or 775. Write permissions are required for the AFC plugin to update the database automatically.

What to do if you still get an error message
There could be several reasons why the AFC plugin cannot find the database. Please refer to the following article for step by step troubleshooting instructions: Aelia Foundation Classes - A message says that the GeoIP database could not be downloaded.

That should be all you need to do to install the GeoIP database. The Aelia Foundation Classes plugin will automatically detect it and use it when required.


You can purchase our WooCommerce plugins from our online shop.