Title: Cannot save posts or pages &#8211; error message
Last modified: September 2, 2021

---

# Cannot save posts or pages – error message

 *  Resolved [sambinding](https://wordpress.org/support/users/sambinding/)
 * (@sambinding)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-save-posts-or-pages-error-message/)
 * Hi there,
    I’ve been having some issues recently where trying to save a page 
   or post results in the following error:
 * Updating failed. The response is not a valid JSON response.
 * I couldn’t get to the bottom of the issue myself, so contacted my hosting company–
   they then tested the site and said:
    I have isolated the issue to your WordFence
   plugin. The issue seems to be with the “post-name” permalink structure and WordFence,
   changing the structure resolves the issue, disabling the WordFence plugin also
   allows you to update both pages and posts
 * I also switched the ‘classic editor’ which helped, but is obviously not a solution
   going forwards.
 * Do you know what might be causing this? Could it be an issue with the recent 
   WordPress update, because I have not had this until recently? I can’t change 
   the permalink because of the SEO.
 * Thanks,
    Sam

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

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-save-posts-or-pages-error-message/#post-14835326)
 * Hi [@sambinding](https://wordpress.org/support/users/sambinding/), thanks for
   getting in touch.
 * I think that [Learning Mode](https://www.wordfence.com/help/firewall/learning-mode/)
   might help here.
 * Firstly, reinstate the permalink and editor format you wish to use, and has been
   causing the problems. From the Wordfence Dashboard click on **Manage WAF**. Then
   you will see **Basic Firewall Options > Web Application Firewall Status**. Change
   the option to **Learning Mode**. Now perform the actions that were causing issues.
   This will help Wordfence learn that these actions are normal and it will allow
   them in the future. After you have finished performing the actions, switch the
   WAF from Learning Mode back to **Enabled and Protecting**. Now test to see if
   you’re able to save without the JSON error going forward.
 * Let me know how you get on.
 * Peter.
 *  Thread Starter [sambinding](https://wordpress.org/support/users/sambinding/)
 * (@sambinding)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-save-posts-or-pages-error-message/#post-14835818)
 * Hi Peter,
 * That worked a treat! Thank you so much – fixed the issue.
 * Best wishes,
    Sam

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

The topic ‘Cannot save posts or pages – error message’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sambinding](https://wordpress.org/support/users/sambinding/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-save-posts-or-pages-error-message/#post-14835818)
 * Status: resolved