Moritz Reitz
← Back to blog

Fluent Forms geoplugin & ipinfo error

Fix for the Fluent Forms "error occurred in getting Country using geoplugin.net" and ipinfo.io token errors — caused by a deprecated geolocation service, resolved in the hotfix.

29 August 2025 · Moritz Reitz

The Solution

After notifying the Fluent Forms team they released a hotfix within 24hrs, which I greatly appreciate. The geolocation service has been replaced with Google's API. You can obtain your API key at Google Cloud Console.

The Issue

If your form presents an error such as "Sorry! Please provide valid token for ipinfo.io in global settings" or "There is an error occurred in getting Country using geoplugin.net"

geoplugin.net error fluent forms
ipinfo.io error fluentforms

You need to go to your form's settings and disable the country based restriction. There is a possible conflict with your plugin.

Fluent form settings for country based restrictions

I have experienced this issue with 2 websites on different hosting environments.

For more Fluent Forms troubleshooting, see my post on Fluent Forms not showing in the WordPress dashboard. If you're building forms or integrating third-party APIs into a WordPress site, take a look at my API integration services.

FAQ

What causes the "error occurred in getting Country using geoplugin.net" message in Fluent Forms? This error appears when Fluent Forms' country-based restriction feature tries to look up the visitor's location via geoplugin.net or ipinfo.io and fails — either because the service is rate-limiting requests, the API token is invalid, or the service is unavailable. The quickest fix is to go to Fluent Forms > Global Settings and disable the country-based restriction entirely.
Fluent Forms released a hotfix — do I still need to disable country restrictions? The hotfix replaced geoplugin.net with Google's geolocation API. If you update to the patched version and add a Google Maps API key in Fluent Forms > Global Settings, country restrictions will work reliably again. If you don't actually need country-based restrictions, disabling the feature removes the error without needing any API key.
How do I get a Google Maps API key for Fluent Forms geolocation? Go to the Google Cloud Console, create or select a project, enable the Geolocation API, and create an API key under Credentials. Restrict the key to your domain to prevent unauthorised use. Then paste the key into Fluent Forms > Global Settings > Map Integration. Google offers a free tier that's sufficient for most small business form usage.

Work with me

Found this helpful?

Get in touch if you need help with your website, SEO, or paid advertising — I offer a free initial consultation.