WooCommerce Setup Wizard has no countries available for selection

[ad_1]

I have installed WordPress both using IIS and Apache on a Windows 11 dev machine that is not public. I have used

PHP7.4, MySQL 5.7, WordPress 6.1.1, Avada Core 5.9.2 and WooCommerce 7.4.

Everything is installed on both environments and the Avada and WooCommerce plugins are installed. I can see a default web page.

If I click on WooCommerce settings, I can see the countries in the Dashboard, but WooCommerce wants to to use the Setup Wizard, and the wizard loads.

In step 1, Store Details, the Country/Region select has no options. If I F12, I can see in the console admin.php shows an uncaught error in promise, and the code is ‘invalid_json’, and the message is ‘The response is not a valid JSON response’. I might be wrong, but I suspect this is the countries list.

There are a few threads on here where this has been fixed but I cannot find an actual solution.

The behavior is the same on both IIS and Apache.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer