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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Andrey 5 months, 2 weeks ago.

Assisted by: Andrey.

Author Posts
August 21, 2024 at 5:06 pm #16091615

williamT-22

Background of the issue:
I am trying to set the languages that I wish to translate using the WPML plugin on a site under development. I am selecting the languages and clicking on the save button.

Symptoms:
The languages are not saved and the HTTP response is: Invalid JSON data.

Questions:
Why are the selected languages not being saved?
What does the 'Invalid JSON data' error mean?

August 21, 2024 at 9:10 pm #16092224

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Could you please specify the version of WPML you are attempting to activate?

Please ensure that the REST API is enabled on your localhost. WPML features are dependent on the WordPress REST API. https://wpml.org/documentation/support/rest-api-dependencies/

August 22, 2024 at 8:12 am #16093319

williamT-22

REST API seems enabled, the version of the WMPL is: 4.6.13 the WordPress version is : 6.4.1

Captura de tela de 2024-08-22 09-08-15.png
August 22, 2024 at 11:30 am #16094638

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I've conducted tests on my local installation and haven't encountered such an issue.

Please ensure that your localhost has access to the following domains: wpml.org, cdn.wpml.org, api.wpml.org, api.toolset.com, and cloudfront.net

You must also update your WordPress to the latest version.

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

I've enabled debug information for this support ticket. Please refer to this link for instructions on how to retrieve this information from your site and provide it to us: http://wpml.org/faq/provide-debug-information-faster-support/

August 22, 2024 at 12:48 pm #16095024

williamT-22

I found the issue in the custom theme