Support » Fixing WordPress » Updating failed. Error message: The response is not a valid JSON response.

  • Resolved sarseth

    (@sarseth)


    I’ve created my first post, about me page, customised everything.
    Then I’ve registered domain and assigned it.
    Now, when I’ve changed Site Address to the new domain suddenly I can’t edit posts. And this is the message I get.
    Updating failed. Error message: The response is not a valid JSON response.
    I can quick edit but cant edit by normal way.
    When I revert my ‘working copy’ address provided by bluehost it works perfectly.
    I’m in dark, since I cant find stacktrace ^^

    Found some similar issues, but always was considering attachments only. It’s not only for me and it is probably not broken by plugin, since I’m changing option in general.
    And I use only basic ones:
    Bluehost
    Code Syntax Block
    Google Analytics for WordPress by MonsterInsights
    Health Check & Troubleshooting – did not help
    Jetpack by WordPress.com
    OptinMonster API
    Yoast SEO

    • This topic was modified 2 years, 2 months ago by sarseth.
    • This topic was modified 2 years, 2 months ago by sarseth.
    • This topic was modified 2 years, 2 months ago by sarseth.
    • This topic was modified 2 years, 2 months ago by sarseth.
Viewing 9 replies - 61 through 69 (of 69 total)
  • keith2657

    (@keith2657)

    BJ Blackburn – I finally resolved it by asking my server host to edit their Modsecurity setting which was throwing exceptions. I also hunted down all my links that were http and changed them to https.
    Keith

    mnischan

    (@mnischan)

    I updated my permalink settings to post name from post name and date and the error is gone. No ideas why.

    I have the same problem.
    I follow @chopperman instruction.
    It worked !
    No more “Updating failed. Error message: The response is not a valid JSON response” message.

    Thank you chopperman and thank you to this forum.

    Oopss… no, the error show again now/

    • This reply was modified 10 months, 2 weeks ago by karmapala.
    • This reply was modified 10 months, 2 weeks ago by karmapala.

    For me the issue was a faulty plugin.

    The error only occurred when using a shortcode, so I checked the function it was calling in the plugin.

    Just added the following to the function it was calling and everything worked fine:

    function name_of_function_called_by_shortcode() {
        ob_start();    //added this on first line of function
        ...            //normal function code
        return ob_get_clean();    //added this to last line of function
    }
    

    I hope this helps someone

    selectednoob

    (@selectednoob)

    I have the same Problem using One Page Xpress.
    I created my website, worked several weeks with it and while creating a new Page, saved it several times, reopened it, just updated one link and got the update failed respons. From this moment every change i made could not be saved anymore. Can somebody help me? i tried everything i could find but no solutions worked out for me

    icequeen0120

    (@icequeen0120)

    Hi everyone having this issue! What I did was deactivate a plugin, one at a time, refresh and save a post again. So, do that one at a time, till you discover what was causing it.

    In my case, it was the Cerber Security plugin.

    Hope it helps!

    notnewb

    (@notnewb)

    Changing the editor, changing your permalinks can solve the issue partially or mask them. I had the same issue for quite a long time and finally got it fixed yesterday. I’m almost completely sure your problem is the same as mine.

    So, the issue here is with the ModSecurity tool. It is an Apache module that works as a web application firewall. It blocks known exploits and protects from a range of attacks against web applications. However, sometimes, it may incorrectly block legitimate requests. In such situations, you can whitelist the triggered mod_security rule on the server. So, I contacted my hosting, explained the situation, they found all the rules that were being blocked incorrectly from their end and whitelisted them for me, and the issue disappeared. I believe this is the permanent solution. So, my advice is to try contacting your hosting.

    I think working with classic editor is not good solutions
    after me and my team at Raeddigital.com tried to fix this issue with classic editor we faced new problem that the classic editor won’t upload new medias to the content
    so we tried to try all solutions including reseting wordpress, re install it, downgrade version.
    then we found that all our websites that share the same hosting facing the same problem. then we detected that is a hosting problem not ours
    we contacted them and we found that

    Per my check, some ModSecurity rules have been triggered for your website. ModSecurity is an Apache module which works as a web application firewall. It blocks known exploits and provides protection from a range of attacks against web applications.
    16:57Sergey Litvin:
    However, sometimes, mod_security may incorrectly determine that a certain request is malicious, while it is actually legitimate. In such a situation, we can white-list the triggered mod_security rule on the server, so that you can bypass the block.
    16:57Sergey Litvin:
    Please try updating your websites now and let me know if it worked.

    then it worked perfectly

    heath4031

    (@heath4031)

    Resaving Permalinks fixed this issue for me!

Viewing 9 replies - 61 through 69 (of 69 total)
  • You must be logged in to reply to this topic.