Hello @havemaskwilltravel
Thanks for using the Yoast SEO plugin and I’m sorry about the issue. We recently released v22.8. Please update to that version and let us know if the issue persists.
Hey Maybellyne, thanks, I’ve updated both plugins to v22.8 but the problem remains. It looks like custom WP shortcode combined with Yoast is causing the JSON response: when I remove the shortcode from my homepage, the page is published with no error. I’ve tried and google to see if others have experienced this and this sounds very similar:
https://stackoverflow.com/questions/77383545/wp-shortcode-returns-json-error-despite-showing-content-on-website
I don’t know if it’s directly caused by your plugin(s) but when I deactivate Yoast SEO, I can publish the page with no error. When I activate Yoast SEO, I can ONLY publish my page with no JSON error if the custom WP shortcode I’ve mentioned, is removed first. The shortcode has nothing to do with Yoast, it’s just a search form.
Hi @havemaskwilltravel
I have tried to replicate this from my local site with Yoast SEO 22.8 and I didn’t face this. The error within the page/post editor can be related to issues like site’s permalinks. To resolve this, can you please perform the following steps:
- In WordPress, go to WordPress dashboard > Settings > Permalinks
- Click the ‘Save Changes’ button without making any modifications.
Hi Mushrit, I’ve done that to no avail.
Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.
Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.
If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts
If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.
This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.
I have deactivated all plugins, then activated them again, and the JSON error did not occur anymore when updating or publishing the page. I have no idea why.