The response is not a valid JSON response.
-
After updating AIOSEO to V5 on 3 seperate sites/ servers, saving/updating posts in the block editor started failing with “Updating failed. The response is not a valid JSON response.” This points to something being output before/alongside the REST response body (likely a PHP notice or warning) that breaks JSON parsing.Also noted around the same time: the plugin was intermittently calling /wp-json/aioseo/v1/redirects/post/{id}/ and getting a 404, even though Redirects is a Pro-only feature and this site runs the free version. A full plugin reinstall resolved that specific 404, but the JSON error on post update persisted until I reverted to [previous version].
What I tried:
- Confirmed base REST API (/wp-json/) responds normally
- Flushed permalinks
- Checked for caching interference (ruled out)
- Reinstalled the plugin fresh (fixed the redirects 404, did not fix the JSON error)
- Reverting to V4 resolved the JSON error completely
Thanks for your help
You must be logged in to reply to this topic.