WPML

Overview of the Issue

After the WPML 4.3.0 update, some sites are displaying the “REST API is disabled, blocking some features of WPML” notice even though the REST API isn’t actually disabled.

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

Before doing this, make sure this is a “false” positive and confirm that your REST API is not disabled (opens in a new tab) and it is working properly.
While we are working on a fix to address this problem, you can temporarily disable this REST API detection feature by editing the functions.php file found in the ../wp-content/plugins/sitepress-multilingual-cms/inc/ folder and at line 818 replace:


function wpml_is_rest_enabled() {
return make( \WPML\Core\REST\Status::class )->isEnabled();
}

With:


function wpml_is_rest_enabled() {
return true;
}

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.

Ask a support question

All known issues