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