I'm being faced very often when I typically go into a saved draft, edit a post and then save it. I'm getting the error:
Updating failed. The response is not a valid JSON response.
I'm finding that I can often publish, but if I continue to save as a draft, I may or may not get what I was expecting. I'm seeing titles disappear and other pieces of content. I have reached out to Wordpress and was told to change the 'permalinks' settings and then change back again. This did not work. I was also told to roll back to classic editor, which seems to work, but I want to continue using blocks. How can I resolve this issue without having to downgrade wordpress for our writers?
As was suggested here is the debug below
Exception { name: "NS_ERROR_FAILURE", message: "", result: 2147500037, filename: "…ormer-quantum-scientist-she-is-now-a-full-time-artist/embed/", lineNumber: 8, columnNumber: 0, data: null, stack: "l@/:8:385\n@/:8:1110\n@/:8:1788\n" }
I'm being faced very often when I typically go into a saved draft, edit a post and then save it. I'm getting the error:
Updating failed. The response is not a valid JSON response.
I'm finding that I can often publish, but if I continue to save as a draft, I may or may not get what I was expecting. I'm seeing titles disappear and other pieces of content. I have reached out to Wordpress and was told to change the 'permalinks' settings and then change back again. This did not work. I was also told to roll back to classic editor, which seems to work, but I want to continue using blocks. How can I resolve this issue without having to downgrade wordpress for our writers?
As was suggested here is the debug below
Exception { name: "NS_ERROR_FAILURE", message: "", result: 2147500037, filename: "https://example/libby-heaney-bridges-the-gap-be…ormer-quantum-scientist-she-is-now-a-full-time-artist/embed/", lineNumber: 8, columnNumber: 0, data: null, stack: "l@https://example/libby-heaney-bridges-the-gap-between-science-and-art-a-former-quantum-scientist-she-is-now-a-full-time-artist/embed/:8:385\n@https://example/libby-heaney-bridges-the-gap-between-science-and-art-a-former-quantum-scientist-she-is-now-a-full-time-artist/embed/:8:1110\n@https://example/libby-heaney-bridges-the-gap-between-science-and-art-a-former-quantum-scientist-she-is-now-a-full-time-artist/embed/:8:1788\n" }
Share
Improve this question
edited Oct 18, 2020 at 11:26
disruptive
asked Oct 12, 2020 at 7:39
disruptivedisruptive
512 bronze badges
7
|
Show 2 more comments
2 Answers
Reset to default 1I don't know if this is the cause of your problem but I had the same problem. I solved it by deleting all the "echo" and "print" I added to debug.
Search for all echo commands and remove them, even not so obvious ones like _e() and all other functions which output html, like the_title(), there is a bunch of them.
?>
, etc. – Pat J Commented Oct 12, 2020 at 16:26