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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqas Bin Hasan 1 month, 3 weeks ago.

Assisted by: Waqas Bin Hasan.

Author Posts
September 26, 2024 at 11:33 pm #16227686

alexA-25

Background of the issue:
We're trying to diagnose an error that occurs with the block editor when WPML is active. We use WPML to host an English and French website using different subdomains (English is default).

Symptoms:
When the block editor is used to publish/save a draft of an English post, it works without issue. But when we try to do the same in French (also using the block editor), we get an error that says 'Publishing failed. The response is not a valid JSON response.' and the French post isn't saved or published. Using the classic editor works fine for both English and French.

Questions:
Do you have any insights on what could be causing the issue?

September 27, 2024 at 7:46 am #16228652

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hello Alex,

Thank you for contacting the support.

Can you please provide the details on the JS error from the browser's console, if possible?

May I also request you to try the following?

1) Take a full backup of your site and database before proceeding.
2) Deactivate all plugins except WPML.
3) Switch to a standard theme like 2024.
4) Check for the issue if it still happens.
5) Then start activating plugins one by one while keep checking for the issue. This way you 'll be able to pinpoint a conflict when & where it starts creating the problem.
6) If after activating all plugins you see that it still works fine, then switch to your theme and see if that's causing it.

Please let me know and I'll try my best to help you further on the matter.

Regards,

Waqas

The topic ‘[Closed] Block editor fails to save draft/publish (JSON error)’ is closed to new replies.