I am having all sorts of problems with WPML (though it seemed work initially) and I think it boils down to WPML indicating that the REST API is not enabled and Site Health Status saying 'The REST API did not process the context query parameter correctly.'
If I disable WPML the Site Health Status is fine. If I re-enable it the problems reoccur.
Meanwhile this ticket is attended by one of my colleagues, I'd request to check for the REST API's availability for your site. As per your debug information I see that it may not be enabled (i.e. RestEnabled = No).
The REST API is a crucial software that enables two applications to exchange data using a specific set of constraints. In particular, the WordPress REST API enables you to connect your WordPress website with external applications (like our services).
If you verify that the REST API is indeed disabled, it should be activated back at the server level - unfortunately, it cannot be done through the WordPress dashboard. So you'll need to get in touch with your hosting provider and ask them to enable it for you.
Sometimes the message on WPML -> Support saying that the REST API is disabled is just a false positive. Please follow the tutorial described on this link and check if it is really inactive on your website: hidden link.
I quickly checked hidden link but instead of an appropriate JSON response, I can see the home page loaded just like hidden link.
As a quick test, you can check with only WPML and a default WordPress theme (i.e. 2024). In this case, remember to take a full backup of your website and database before deactivating plugins and switching the theme.
You may also need to whitelist the following domains:
- wpml.org
- cdn.wpml.org
- api.wpml.org
- api.toolset.com
- cloudfront.net