ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    WordPress Update Error: Updating failed. The response is not a valid JSON response.

    IT Discussion
    wordpress litespeed openlitespeed web server php
    2
    7
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Have a WordPress site that can't update pages because it gives this error: "Updating failed. The response is not a valid JSON response."

      It's not a bad URL, we've verified that. Can't find anything obvious to cause the problem.

      It's also (I'm assuming that the problems are linked) causing 404 errors on other pages other than the home page. But the links are right and the pages show that the permalink is correct.

      Not sure where to start. Webserver is LiteSpeed.

      1 1 Reply Last reply Reply Quote 0
      • 1
        1337 @scottalanmiller
        last edited by 1337

        @scottalanmiller said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

        Have a WordPress site that can't update pages because it gives this error: "Updating failed. The response is not a valid JSON response."

        It's not a bad URL, we've verified that. Can't find anything obvious to cause the problem.

        It's also (I'm assuming that the problems are linked) causing 404 errors on other pages other than the home page. But the links are right and the pages show that the permalink is correct.

        Not sure where to start. Webserver is LiteSpeed.

        Sounds like it has something to do with LiteSpeeds URL rewriting. Increase the log level on that for further clues.

        If you solve the 404 problem I think the updates will also work.

        1 scottalanmillerS 2 Replies Last reply Reply Quote 0
        • 1
          1337 @1337
          last edited by

          @Pete-S said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

          @scottalanmiller said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

          Have a WordPress site that can't update pages because it gives this error: "Updating failed. The response is not a valid JSON response."

          It's not a bad URL, we've verified that. Can't find anything obvious to cause the problem.

          It's also (I'm assuming that the problems are linked) causing 404 errors on other pages other than the home page. But the links are right and the pages show that the permalink is correct.

          Not sure where to start. Webserver is LiteSpeed.

          Sounds like it has something to do with LiteSpeeds URL rewriting. Increase the log level on that for further clues.

          If you solve the 404 problem I think the updates will also work.

          Perhaps you could try setting wordpress to plain permalinks as well, just to check. I think the URL rewriting is not used then. Just an idea.

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @1337
            last edited by

            @Pete-S said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

            @scottalanmiller said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

            Have a WordPress site that can't update pages because it gives this error: "Updating failed. The response is not a valid JSON response."

            It's not a bad URL, we've verified that. Can't find anything obvious to cause the problem.

            It's also (I'm assuming that the problems are linked) causing 404 errors on other pages other than the home page. But the links are right and the pages show that the permalink is correct.

            Not sure where to start. Webserver is LiteSpeed.

            Sounds like it has something to do with LiteSpeeds URL rewriting. Increase the log level on that for further clues.

            If you solve the 404 problem I think the updates will also work.

            I believe both of those things to be true. Just haven't figured out what it is, though, because other WP sites on the same host aren't experiencing the issue.

            1 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @1337
              last edited by

              @Pete-S said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

              @Pete-S said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

              @scottalanmiller said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

              Have a WordPress site that can't update pages because it gives this error: "Updating failed. The response is not a valid JSON response."

              It's not a bad URL, we've verified that. Can't find anything obvious to cause the problem.

              It's also (I'm assuming that the problems are linked) causing 404 errors on other pages other than the home page. But the links are right and the pages show that the permalink is correct.

              Not sure where to start. Webserver is LiteSpeed.

              Sounds like it has something to do with LiteSpeeds URL rewriting. Increase the log level on that for further clues.

              If you solve the 404 problem I think the updates will also work.

              Perhaps you could try setting wordpress to plain permalinks as well, just to check. I think the URL rewriting is not used then. Just an idea.

              Oh we have, and they work when it's the post ID rather than the PL.

              1 Reply Last reply Reply Quote 0
              • 1
                1337 @scottalanmiller
                last edited by 1337

                @scottalanmiller said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

                @Pete-S said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

                @scottalanmiller said in WordPress Update Error: Updating failed. The response is not a valid JSON response.:

                Have a WordPress site that can't update pages because it gives this error: "Updating failed. The response is not a valid JSON response."

                It's not a bad URL, we've verified that. Can't find anything obvious to cause the problem.

                It's also (I'm assuming that the problems are linked) causing 404 errors on other pages other than the home page. But the links are right and the pages show that the permalink is correct.

                Not sure where to start. Webserver is LiteSpeed.

                Sounds like it has something to do with LiteSpeeds URL rewriting. Increase the log level on that for further clues.

                If you solve the 404 problem I think the updates will also work.

                I believe both of those things to be true. Just haven't figured out what it is, though, because other WP sites on the same host aren't experiencing the issue.

                If you are sure it's the URL rewriting then and have other virtual hosts that works, then it's just a matter of comparing the configuration for them.

                I don't know if LiteSpeed has one or more config files for each host but regardless put them in individual files and run `diff´ on them. I bet somewhere in the settings, perhaps the rewrite rules, there is a dot or something that's either missing or shouldn't be there.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  So one of our guys tracked it down. It was a typo in the .htaccess file that we received from the customer.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post