Updating failed. The response is not a valid JSON response.
-
Hello, I’m currently encountering an issue while attempting to insert JavaScript code into a new post using the Custom HTML block in WordPress admin.
My intention is to paste a simple stock price widget code, but upon saving the draft or publishing, I encounter the error message: “Updating failed. The response is not a valid JSON response.”
Interestingly, all other HTML code works seamlessly; the issue seems to specifically revolve around the tag <script>, which triggers the mentioned error.
I’m curious if there might be a WordPress filter or setting that is preventing the inclusion of JavaScript code.
Your assistance in resolving this matter would be greatly appreciated. Thank you.
- The topic ‘Updating failed. The response is not a valid JSON response.’ is closed to new replies.