JSON error in UI when using certain words
-
We have an up-to-date WPMU install on WPEngine, that uses a custom theme that itself uses Block Lab 1.5.0. It works great, except for one particular bug that we can’t figure out:
When creating a new post with a so-called WYSIWYG block, the main text/content portion is built using a content field, like this: block_field(‘content’, false);
99% of the time it works great. But when our users enter text with the word “script” in it (like “description” or “subscription”) to that field and clicks out of it to close the editor and display the page, the block shows a gray box with the text “Error loading block: The response is not a valid JSON response.” In the console, api-fetch.js returns a 403 error. The request string can be found here:
If the user clicks back into the block, the editor shows that the original text is still there, and on publishing the original correct text is published, so it’s just the block UI that’s having the problem.
We’ve tried turning off plugins and all the usual stuff. The currently installed and enabled plugins are: AddToAny Share Buttons, Advanced Custom Fields PRO, Advanced Gutenberg Blocks, Better Search Replace, Block Lab, Compress JPEG & PNG images, Custom Post Type UI, Disable Gutenberg Blocks – Block Manager, Lazy Load by WP Rocket, Public Post Preview, WP Add Custom CSS, WP Rocket, WP2Static, and Yoast SEO.
Have you all ever seen anything like this? If not, any ideas on what to try next?
The topic ‘JSON error in UI when using certain words’ is closed to new replies.