WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#53439 new defect (bug)

Updating failed. The response is not a valid JSON response.

Reported by: lupussolaris Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 5.7.2
Component: Editor Keywords: 2nd-opinion needs-testing
Focuses: javascript Cc:

Description

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

Change History (1)

#1 @desrosj
4 months ago

  • Component changed from External Libraries to Editor
  • Focuses ui performance removed
Note: See TracTickets for help on using tickets.