Title: JSON error, cant post or save drafts
Last modified: August 29, 2021

---

# JSON error, cant post or save drafts

 *  Resolved [promohipcom](https://wordpress.org/support/users/promohipcom/)
 * (@promohipcom)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/json-error-cant-post-or-save-drafts/)
 * Hello everyone,
    I recently came across an issue with my site that made me unable
   to post, or save drafts. The error goes as follows “the response is not a valid
   JSON response” I’ve changed my permalinks (both in WP and Yoast SEO), disabled
   all my plugins, reverted my theme back to twenty twenty-one, reset my .htaccess
   file, purged all my cache, disabled HSTS, enabled debug mode, reset the REST 
   API, reverted back to WP 5.7.2 (currently using 5.8) and I’ve had no luck. The
   only thing that has allowed me to post again is by using the classic editor, 
   which I don’t want to use as I prefer the block editor.
 * Does anyone know how to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kuldeep](https://wordpress.org/support/users/soberbanda/)
 * (@soberbanda)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/json-error-cant-post-or-save-drafts/#post-14816584)
 * [@promohipcom](https://wordpress.org/support/users/promohipcom/) I think you 
   will need to contact your hosting for this. If you are on apache, there is a 
   security module called mod_security that blocks WordPress related triggers citing
   as malicious. You will need to ask them to whitelist mod_security related triggers.
   It will be fixed.
 * Hope that helps.
 *  Thread Starter [promohipcom](https://wordpress.org/support/users/promohipcom/)
 * (@promohipcom)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/json-error-cant-post-or-save-drafts/#post-14816743)
 * That fixed it… Thank you!!
    I’ve been after this for like a week now and you 
   just saved me a lot of headache.
 *  [Kuldeep](https://wordpress.org/support/users/soberbanda/)
 * (@soberbanda)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/json-error-cant-post-or-save-drafts/#post-14816802)
 * [@promohipcom](https://wordpress.org/support/users/promohipcom/) Glad I could
   help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘JSON error, cant post or save drafts’ is closed to new replies.

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)
 * [JSON error](https://wordpress.org/support/topic-tag/json-error/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Kuldeep](https://wordpress.org/support/users/soberbanda/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/json-error-cant-post-or-save-drafts/#post-14816802)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
