Make WordPress Core

Opened 20 months ago

Closed 20 months ago

Last modified 11 months ago

#58219 closed defect (bug) (worksforme)

Gutenberg throws an unknown exception

Reported by: chaser1's profile chaser1 Owned by:
Milestone: Priority: normal
Severity: major Version: 6.2
Component: Editor Keywords:
Focuses: javascript Cc:

Description

Hey there!

For an unknown reason Gutenberg started crashing imediately on every page on one of our customers website. I debugged the js part and noticed, that the result variable in the useSetting function (/wp-includes/js/dist/block-editor.js) is null. However in line 11546 and 11555 the variable is checked for undefined, but not for null. I added this check as well and it worked like a charm.

It should be a no brainer task to fix this, but I have no clue how to add it to WordPress, so it would be nice if a more experienced WordPress dev could add it for us.

Thank you! :)

Change History (3)

#1 @jrf
20 months ago

Hi @chaser1 Thanks for reporting this. Sounds like something which should be fixed in the Gutenberg repo, there might even be a ticket open for it already ?

#2 @chaser1
20 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

Thanks, I openend an PR. (https://github.com/WordPress/gutenberg/pull/50461)
Btw: We figured out, that we had an error in our theme.json. Some values was set to null. However it seems like WordPress wants an empty array instead. So if anyone reads this, issuing a similar problem this might be a clue in the right direction

#3 @swissspidy
11 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.