Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 2 months ago.

Author Posts
April 14, 2024 at 5:02 pm #15516649

matthewS-46

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.

April 15, 2024 at 5:36 am #15517032

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Vincent,

Thank you for contacting the support.

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).

Please check this information at https://wpml.org/documentation/support/rest-api-dependencies/.

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

See https://wpml.org/faq/wpml-plugin-cannot-connect-to-wpml-org/ for details.

Regards.

April 15, 2024 at 2:08 pm #15520647

matthewS-46

It turned out it was an SSL issue. Thanks for responding.