Updating failed. Not a valid JSON response. When using Spacers in Production
-
When I try to update a page with a spacer, I get the error:
Updating failed. The response is not a valid JSON response.
However this error is not occurring on my local machine or the Dev environment. The issue happens on both QA and Production.
I have updated to the latest version of WordPress and plugins, disabled all plugins, disabled individual plugins. When I edit existing or create new pages without spacers the page gets updated. The issue only occurs when I put a spacer in the page. If I edit the spacer and remove the ‘style=”xxxx”‘ tag, I am able to submit the form.
<!-- wp:spacer {"height":"5px"} --> <div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div> <!-- /wp:spacer -->
I am not sure why the
style="height:5px"
is breaking pages but only on QA and Prod environments and not on Dev or my localhost.Thank in advance for your help.
- The topic ‘Updating failed. Not a valid JSON response. When using Spacers in Production’ is closed to new replies.