Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Unable to activate WPML and getting that the REST API is disabled.

Solution:
Although we don't have much information from client about the issue, but apparently looking at the debug info it looks like that:

- WordPress needs an update to the latest version.
- WPML plugins needs to be updated to the latest versions.

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: https://www.shellhacks.com/wordpress-enable-rest-api-rest_disabled-401-403/.

You may also need to whitelist the following domains:
- wpml.org
- cdn.wpml.org
- api.wpml.org
- api.toolset.com
- cloudfront.net

Relevant Documentation:
- https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/
- https://wpml.org/faq/wpml-plugin-cannot-connect-to-wpml-org/
- https://wpml.org/documentation/support/rest-api-dependencies/

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

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

Assisted by: Waqas Bin Hasan.

Author Posts
December 30, 2023 at 2:58 pm #15138125

arberC-2

I am trying to activate the wpml

im getting that the rest api is disabled

i've attached debug info as well

January 1, 2024 at 7:36 am #15139163

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hi,

Thank you for contacting the support.

Before proceeding further, please fix the following:

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Update WordPress to the latest version.
- Update all WPML plugins to latest versions. You can try this by manually downloading from https://wpml.org/account/downloads/ and uploading via Plugins -> Add New -> Upload.

Then:

- Deactivate all plugins, switch to a standard WordPress theme like 2024 or 2021, and, try to activate WPML first.
- Then activate other plugins one-by-one.
- And finally switch back to your theme.

Please let me know if that helps.

Regards.