[wp-trac] [WordPress Trac] #53439: Updating failed. The response is not a valid JSON response.
WordPress Trac
noreply at wordpress.org
Thu Jun 17 10:57:17 UTC 2021
#53439: Updating failed. The response is not a valid JSON response.
-------------------------------------+-------------------------------------
Reporter: lupussolaris | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: External Libraries | Version: 5.7.2
Severity: major | Keywords: 2nd-opinion needs-
Focuses: ui, javascript, | testing
performance |
-------------------------------------+-------------------------------------
Hi, There seems to be a issue where when one tries to save a page you get
the error "Updating failed. The response is not a valid JSON response."
The only thing that seems to work is to set the permalink setting to
plain.
I believe the issue has something to do with paths. I am running PHP
7.0.27
I have installed a fresh install of WP in wwwroot on a hosted service
Hostek. Updated to 5.7.2. The only plugin I have is gutenberg using 2021
Theme. Set the permalink to Post Name. No problems with this setup.
Then I installed a test WP installation into wwwroot/_test/abc. Updated to
5.7.2. This only has gutenberg and 2021. Set the permalink to Post name. -
WP throws the error and refuses to save the page - I do get offered to
restore the backup so some sort of saving takes place. Following online
guidance, I change the permalink to plain and then WP will save the page.
It seems that the issue has something to do with json not liking that WP
is not installed at the root of the server. Possibly json is testing the
slug and erroring out due to path conflict.
error site would be abc.com/_test/abc/slug.
good site is abc.com/slug
Kind Regards
Richard
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53439>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list