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.
-
@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.
-
@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.
-
@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.
-
@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.
-
@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.
-
So one of our guys tracked it down. It was a typo in the .htaccess file that we received from the customer.