[wp-trac] [WordPress Trac] #58219: Gutenberg throws an unknown exception

WordPress Trac noreply at wordpress.org
Fri Apr 28 09:41:49 UTC 2023


#58219: Gutenberg throws an unknown exception
--------------------------+-----------------------------
 Reporter:  chaser1       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  6.2
 Severity:  major         |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 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! :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58219>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list