Make WordPress Core

Opened 2 months ago

Last modified 2 weeks ago

#54230 new defect (bug)

Block based widgeteditor can't update "Not a valid JSON response"

Reported by: davidlarssonback Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8.1
Component: Widgets Keywords: reporter-feedback
Focuses: Cc:


When editing widgets with the new blockbased widgeteditor I can not update. I get the error "Not a valid JSON response".

I can publish and update posts and pages.
I can edit and update widgets from the customizer.

I have tried chaging permalink settings. Even with permalinks set to plain I still get the same error when I use the widgeteditor.

Site is running on an ISS server.

Change History (5)

#1 @davidlarssonback
2 months ago

  • Component changed from General to Widgets

#2 @antonvlasenko
2 months ago

  • Keywords reporter-feedback added

Thank you for submitting a ticket.
Could you please provide clear steps on how to reproduce this issue?
Screencast would also help in the further triage.
Thank you.

Last edited 2 months ago by antonvlasenko (previous) (diff)

#3 @sabbirshouvo
8 weeks ago

@davidlarssonback are you using any shortcode inside widgets? If yes then please check if any of the shortcodes echo anything instead of return. If echo or output anything then the error will happen. Shortcodes should always return content.

#4 @sabbirshouvo
8 weeks ago

  • Focuses rest-api removed

#5 @joegasper
2 weeks ago

Same issue, just Widget editor fails. Tried everything you'll find on this error. Running IIS, don't have a site that it works, single or multisite. This is a screen recording of a generic site, 2021 theme. PHP 7.4 - no errors. MySQL 5.7.25.

Note: See TracTickets for help on using tickets.