Title: Geolocation not working
Last modified: August 31, 2016

---

# Geolocation not working

 *  Resolved [jameswilson_114](https://wordpress.org/support/users/jameswilson_114/)
 * (@jameswilson_114)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/)
 * As of today geolocation doesn’t work on my site. The billing country no longer
   recognizes the customers location and only shows the default country (UK). I 
   have checked it using a VPN from different locations around the world.
 * I have tried deactivating all other plugins except woocommerce and have updated
   every plugin to its latest version with no luck. No cache plugin is active.
 * This is really important to me as I use an automatic currency converting plugin,
   and the prices are changing back to the default billing country at checkout. 
   Therefore all worldwide customers are not seeing the converted prices but UK 
   prices. The problem persists when the currency converting plugin is deactivated.
   The plugin uses woocommerce geolocation to serve the appropriate currencies.
 * I checked the GeoIP.dat and GeoIPv6.dat files and they were both updated today.
 * Any help would be greatly appreciated.
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059077)
 * Even when working Geolocation is never 100% accurate. Once they input an address,
   the taxes would change. Does the plugin you’re using not allow a manual switch?
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059078)
 * Also just cleared my .dat files and tested and was geolocated fine.
 *  Thread Starter [jameswilson_114](https://wordpress.org/support/users/jameswilson_114/)
 * (@jameswilson_114)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059146)
 * Hey mike, thank you for your response – I appreciate all the help.
 * Yes once they select the billing country from the drop down the currency switches
   automatically to their selected country and back to the currency they have seen
   on the rest of the site and up to checkout.
 * My reason for looking for a fix is customers can come to checkout and see a different
   currency/price and drop out before realizing the billing country needs changing.
 * It worked perfectly up to yesterday and I havent completed any updates. Is there
   anything my hosting company could have done/updated which could be causing the
   sudden stop in functionality?
 * Is there anything else you can recommended to try to get it to work again and
   recognize the location of the user?
 * Many thanks
 *  Thread Starter [jameswilson_114](https://wordpress.org/support/users/jameswilson_114/)
 * (@jameswilson_114)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059183)
 * Hey, just an update. I have tested the geolocation on a exact replica site on
   a different VPS server which I have. It worked perfectly as it should.
 * Therefore that must narrow the problem down to a change/update my web hosting
   company has made which has affected the geolocation.
 * Many thanks
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059191)
 * Ok. If you delete the dat files and let them redownload, that should rule out
   any corruption.
 *  Thread Starter [jameswilson_114](https://wordpress.org/support/users/jameswilson_114/)
 * (@jameswilson_114)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059227)
 * Hey Mike, I have replaced the dat files but it unfortunately didn’t solve the
   issue.
 * Are there any other suggestions?
 * Many thanks
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059229)
 * Nothing else I can think of. it’s working for me, so unless your IP cannot be
   geolocated for any reason..
 *  [shawaj](https://wordpress.org/support/users/shawaj/)
 * (@shawaj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059338)
 * This stopped working for me also just recently.
 * I initially thought it was down to recently moving over to Sucuri CloudProxy 
   but after deactivating it and going through a whole host of other tests with 
   the people over at Sucuri it still appears to be an issue.
 * Can’t think what else it could be. I am using the “geolocate with caching support”
   setting.
 *  [shawaj](https://wordpress.org/support/users/shawaj/)
 * (@shawaj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059339)
 * Just in case this issue occurs to anyone else:
 * Looks like I had a combination issue – it was a misconfiguration in CloudProxy
   AND corrupted GeoIP.dat and GeoIPv6.dat making it difficult to find the issue!
 * I now have everything working with CloudProxy / Sucuri WAF using the Sucuri WordPress
   Plugin with Reverse Proxy Support enabled, IP Address Discover enabled and Main
   IP HTTP Header set to HTTP_X_REAL_IP
 * GeoIP.dat and GeoIPv6.dat are located in wp-content/uploads folder and I just
   deleted and then force-downloaded them again.

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

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

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [shawaj](https://wordpress.org/support/users/shawaj/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/geolocation-not-working-1/#post-7059339)
 * Status: resolved