Title: Geolocation will not function
Last modified: May 23, 2018

---

# Geolocation will not function

 *  Resolved [dctotallockout](https://wordpress.org/support/users/dctotallockout/)
 * (@dctotallockout)
 * [8 years ago](https://wordpress.org/support/topic/geolocation-will-not-function/)
 * Hi, I did a wordpress update but now getting this error from Price based on countries
   plugin / database.
 * The MaxMind GeoIP Database does not exist – Geolocation will not function.
 * It says to download it and upload but not too confident with databases etc? Is
   there an easy fix?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgeolocation-will-not-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * (@oscargare)
 * [8 years ago](https://wordpress.org/support/topic/geolocation-will-not-function/#post-10317285)
 * Hi,
 * The Geolocation is a function supported by WooCommerce. WooCommerce uses the 
   MaxMind GeoLite database for geolocation, The GeoLite database has been discontinued
   by MaxMind, and GeoLite2 is the replacement. WooCommerce 3.4 adds support for
   and integrates WooCommerce with GeoLite2 to ensure geolocation will continue 
   working correctly for the forseeable future. [Read more about WC 3.4](https://woocommerce.wordpress.com/2018/05/23/woocommerce-3-4-is-here/)
 * **Price Based on Country have been tested with 3.4**, the message is showing 
   because WooCommerce does not download the new GeoLite2 automatically on the update
   to 3.4 and Price Based on Country is detecting the GeoIP database is not installed
   on your site.
 * To solve it you can :
    1. Force that WooCommerce to download the GeoIP database
   from WooCommerce settings: + Go to WooCommerce -> General settings, Set the option“
   Default customer location” to “No Location by default”. + Save changes. + Return
   back the option “Default customer location” to “Geolocate” (or “Geolocate with
   page chaching support”) and save changes.
 * 2. If option 1 does not work, you will have to upload the GeoIP manually.
 * Regards,
 * Oscar.
    -  This reply was modified 8 years ago by [Oscar Gare](https://wordpress.org/support/users/oscargare/).
    -  This reply was modified 8 years ago by [Oscar Gare](https://wordpress.org/support/users/oscargare/).
 *  Thread Starter [dctotallockout](https://wordpress.org/support/users/dctotallockout/)
 * (@dctotallockout)
 * [8 years ago](https://wordpress.org/support/topic/geolocation-will-not-function/#post-10318666)
 * Hi Oscar,
 * Thank you very much for your response. That explains it much more clearer to 
   me.
 * I have tried option 1, but as I am currently in the UK I cannot detect if the
   geolocation is working/if it shows the currency as dollars for US customers. 
   I will have to wait to find out.
 * If not, I will have to look into the option 2.
 *  Thread Starter [dctotallockout](https://wordpress.org/support/users/dctotallockout/)
 * (@dctotallockout)
 * [8 years ago](https://wordpress.org/support/topic/geolocation-will-not-function/#post-10336713)
 * Hi Oscar, I have done some more digging and read the article you sent from woocommerce.
   Turns out the GeoLite2 requires a minimum PHP version of 5.4 anD i think my site
   is less than this. It is very important I get the geolocation feature, have you
   got an old version of the plugin that I could re-install as a short term fix?
 * It says on woocommerce “The whole process is automatic and no further action 
   is needed on the store owner’s part to keep geolocation working correctly.”
 * I havent actaully installed the woocommerce version 3.4 yet could this be why?
    -  This reply was modified 8 years ago by [dctotallockout](https://wordpress.org/support/users/dctotallockout/).
 *  Plugin Author [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * (@oscargare)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/geolocation-will-not-function/#post-10341285)
 * If your PHP version is older than 5.4, you can enabled CloudFlare on your site:
   
   [https://support.cloudflare.com/hc/en-us/articles/227634427-Using-Cloudflare-with-WordPress](https://support.cloudflare.com/hc/en-us/articles/227634427-Using-Cloudflare-with-WordPress)
   and then enable the CloudFlare IP Geolocation, the WooCommerce Geolocation function
   supports it: [https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-Cloudflare-IP-Geolocation-do-](https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-Cloudflare-IP-Geolocation-do-)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Geolocation will not function’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-product-price-based-on-countries/assets/icon-
   256x256.png?rev=1976858)
 * [Price Based on Country for WooCommerce](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/geolocation-will-not-function/#post-10341285)
 * Status: resolved