Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widgets editor - can't add or save #27964

Closed
Simonsbs opened this issue Jan 4, 2021 · 4 comments
Closed

Widgets editor - can't add or save #27964

Simonsbs opened this issue Jan 4, 2021 · 4 comments
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release

Comments

@Simonsbs
Copy link

Simonsbs commented Jan 4, 2021

I'm trying to add a block to a widget area - but no matter what I do I get an error "There was an error. [object Object]"

To reproduce
Steps to reproduce the behavior:

  1. Go to Design -> Widgets
  2. Add a block to any area
  3. Click Save
  4. See an error in the bottom corner

Expected behavior
Save the changes made

Screenshots
2021-01-04 10_09_12-וידג'טים › TechLab — וורדפרס

Editor version (please complete the following information):

  • WordPress version: 5.6
  • using the block editor that comes by default

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chrome
@bph
Copy link
Contributor

bph commented Jan 4, 2021

Is there an error message in the browser console?
3-dot menu > More Tools > Developer Tools
Screen Shot 2021-01-04 at 11 26 12 AM

The first tap is the "Console". It'll help to clear all previous error messages and refresh the page.

@bph bph added [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Status] Needs More Info Follow-up required in order to be actionable. labels Jan 4, 2021
@Soean
Copy link
Member

Soean commented Jan 4, 2021

I can reproduce the error, if I add a block to an empty widget area:

Request payload:

{
   "id":"sidebar-1",
   "widgets":[
      null
   ]
}

Response:

{
   "code":"rest_invalid_param",
   "message":"Invalid parameter(s): widgets",
   "data":{
      "status":400,
      "params":{
         "widgets":"widgets[0] is not of type object,string."
      }
   }
}

@Soean Soean added [Type] Bug An existing feature does not function as intended and removed [Status] Needs More Info Follow-up required in order to be actionable. labels Jan 4, 2021
@annezazu annezazu added the [Type] Regression Related to a regression in the latest release label Jan 5, 2021
@annezazu
Copy link
Contributor

annezazu commented Jan 5, 2021

Ran into this today with Twenty Twenty theme and 9.6.2: https://cloudup.com/cdA49pgrb0N Marking this as a regression and adding to the project board for widgets to get more attention!

@annezazu
Copy link
Contributor

annezazu commented Jan 5, 2021

@tellthemachines kindly pointed out to me that this is a duplicate of #27173 Going to close this out for now and defer to the original issue which has a bit more information.

@annezazu annezazu closed this as completed Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

No branches or pull requests

4 participants