Gutenberg broken after WP 5.9 update
-
Hey,
I am no longer able to add/edit posts after updating to WP 5.9 – only white screen is shown. I tried “Disable Gutenberg” plug-in, and it allowed me to edit with the classic editor. Then I tried to see what’s wrong – the page source for the white screen contained full html document, and the console output is on the screenshot at imgdb.com
- This topic was modified 2 years, 10 months ago by xs256.
-
@livog Can you tell us noobs where exactly this was located in your theme?
- This reply was modified 2 years, 9 months ago by jessenoplace.
@livog thank you!!! in my case, those lines were inside enqueue.php in my theme! I removed those lines and now it works!!!
@jessenoplace depending on your theme, it could be inside functions.php or enqueue.php, in fact I recommend you to use a code editor with “Find in Folder” option to make sure you’ll find it anywhere inside your theme folder.
Actually, did an entire site search and it doesn’t exist anywhere.
Console showing a lot of errors. Perhaps this is a permissions issue?
blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2 Uncaught TypeError: Cannot read properties of undefined (reading 'SVG') at Object.//Lo (blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2:1057) at r (blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2:144) at Module.0ATp (blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2:12298) at r (blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2:144) at wp.blocks.//Lo (blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2:943) at blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2:957 //Lo @ blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2 r @ blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2 0ATp @ blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2 r @ blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2 wp.blocks.//Lo @ blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2 (anonymous) @ blocks.min.js?ver=28d5b8f8805a22435cbdc51927067812:2 post.php?post=1773&action=edit:183 Uncaught TypeError: Cannot read properties of undefined (reading 'setCategories') at post.php?post=1773&action=edit:183:11 (anonymous) @ post.php?post=1773&action=edit:183 block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26 Uncaught TypeError: Cannot read properties of undefined (reading '__unstableGetBlockProps') at Object.<anonymous> (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26:79729) at Object.nlh6 (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26:79755) at n (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2:149) at Object.jBNB (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26:26910) at n (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2:149) at Object.VyCT (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:12:8465) at n (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2:149) at Module.tr0p (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26:114119) at n (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2:149) at wp.blockEditor.+0ps (block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2:948) (anonymous) @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26 nlh6 @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26 n @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2 jBNB @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26 n @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2 VyCT @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:12 n @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2 tr0p @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:26 n @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2 wp.blockEditor.+0ps @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2 (anonymous) @ block-editor.min.js?ver=56fd274d0d14fe0540d61051a6a899d2:2 core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2 Uncaught TypeError: Cannot read properties of undefined (reading 'controls') at Module.dsJ0 (core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2:40127) at n (core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2:146) at wp.coreData.1ZqX (core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2:945) at core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2:959 dsJ0 @ core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2 n @ core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2 wp.coreData.1ZqX @ core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2 (anonymous) @ core-data.min.js?ver=b4684a7c90f2d858ab7fa74414ad5a54:2 block-library.min.js?ver=49fba42622059b5560281bac78da1c05:23 Uncaught TypeError: Cannot read properties of undefined (reading 'BlockIcon') at Module.K51g (block-library.min.js?ver=49fba42622059b5560281bac78da1c05:23:60987) at o (block-library.min.js?ver=49fba42622059b5560281bac78da1c05:2:150) at wp.blockLibrary.1CF3 (block-library.min.js?ver=49fba42622059b5560281bac78da1c05:2:949) at block-library.min.js?ver=49fba42622059b5560281bac78da1c05:2:963 K51g @ block-library.min.js?ver=49fba42622059b5560281bac78da1c05:23 o @ block-library.min.js?ver=49fba42622059b5560281bac78da1c05:2 wp.blockLibrary.1CF3 @ block-library.min.js?ver=49fba42622059b5560281bac78da1c05:2 (anonymous) @ block-library.min.js?ver=49fba42622059b5560281bac78da1c05:2 editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:7 Uncaught TypeError: Cannot read properties of undefined (reading 'store') at Module.PLxR (editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:7:20354) at n (editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:2:144) at wp.editor.16Al (editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:2:943) at editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:2:957 PLxR @ editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:7 n @ editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:2 wp.editor.16Al @ editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:2 (anonymous) @ editor.min.js?ver=4462388364a4deca4092cf3e67a30a8b:2 tab.js?ver=5b5dcc76918e7ffcc6acc250fbe401df:4 Uncaught TypeError: Cannot read properties of null (reading 'click') at tab.js?ver=5b5dcc76918e7ffcc6acc250fbe401df:4:39 (anonymous) @ tab.js?ver=5b5dcc76918e7ffcc6acc250fbe401df:4 formidable_blocks.js?ver=5.2:1 Uncaught TypeError: Cannot read properties of undefined (reading 'InspectorControls') at Object.<anonymous> (formidable_blocks.js?ver=5.2:1:8594) at n (formidable_blocks.js?ver=5.2:1:110) at Object.<anonymous> (formidable_blocks.js?ver=5.2:1:6408) at n (formidable_blocks.js?ver=5.2:1:110) at Object.<anonymous> (formidable_blocks.js?ver=5.2:1:6349) at n (formidable_blocks.js?ver=5.2:1:110) at formidable_blocks.js?ver=5.2:1:902 at formidable_blocks.js?ver=5.2:1:911 (anonymous) @ formidable_blocks.js?ver=5.2:1 n @ formidable_blocks.js?ver=5.2:1 (anonymous) @ formidable_blocks.js?ver=5.2:1 n @ formidable_blocks.js?ver=5.2:1 (anonymous) @ formidable_blocks.js?ver=5.2:1 n @ formidable_blocks.js?ver=5.2:1 (anonymous) @ formidable_blocks.js?ver=5.2:1 (anonymous) @ formidable_blocks.js?ver=5.2:1 post.php?post=1773&action=edit:421 Uncaught TypeError: Cannot read properties of null (reading '1') at window.onerror (post.php?post=1773&action=edit:421:83) window.onerror @ post.php?post=1773&action=edit:421 error (async) (anonymous) @ post.php?post=1773&action=edit:398 frm_blocks.js?ver=5.2:1 Uncaught TypeError: Cannot read properties of undefined (reading 'InspectorControls') at Object.<anonymous> (frm_blocks.js?ver=5.2:1:14510) at n (frm_blocks.js?ver=5.2:1:110) at Object.<anonymous> (frm_blocks.js?ver=5.2:1:11629) at n (frm_blocks.js?ver=5.2:1:110) at Object.<anonymous> (frm_blocks.js?ver=5.2:1:11550) at n (frm_blocks.js?ver=5.2:1:110) at frm_blocks.js?ver=5.2:1:902 at frm_blocks.js?ver=5.2:1:911 (anonymous) @ frm_blocks.js?ver=5.2:1 n @ frm_blocks.js?ver=5.2:1 (anonymous) @ frm_blocks.js?ver=5.2:1 n @ frm_blocks.js?ver=5.2:1 (anonymous) @ frm_blocks.js?ver=5.2:1 n @ frm_blocks.js?ver=5.2:1 (anonymous) @ frm_blocks.js?ver=5.2:1 (anonymous) @ frm_blocks.js?ver=5.2:1 post.php?post=1773&action=edit:421 Uncaught TypeError: Cannot read properties of null (reading '1') at window.onerror (post.php?post=1773&action=edit:421:83) window.onerror @ post.php?post=1773&action=edit:421 error (async) (anonymous) @ post.php?post=1773&action=edit:398 edit-post.min.js?ver=aec3905d54d344b48f452da0da95d621:49 Uncaught TypeError: Cannot read properties of undefined (reading 'registerCoreBlocks') at Module.el (edit-post.min.js?ver=aec3905d54d344b48f452da0da95d621:49:134313) at HTMLDocument.<anonymous> (post.php?post=1773&action=edit:363:25) el @ edit-post.min.js?ver=aec3905d54d344b48f452da0da95d621:49 (anonymous) @ post.php?post=1773&action=edit:363 post.php?post=1773&action=edit:421 Uncaught TypeError: Cannot read properties of null (reading '1') at window.onerror (post.php?post=1773&action=edit:421:83) window.onerror @ post.php?post=1773&action=edit:421 error (async) (anonymous) @ post.php?post=1773&action=edit:398
Hi,
My host updated from WP 5.8 -> 5.9.1 now my New Page and Edit Page are returning the white screen of death. Happens in Chrome (latest) incognito, Firefox private, and Safari. Deactivating all plugins, or all but ACF doesn’t help. Using the Classic Editor plugin works but I’m heavily invested in Gutenberg. The Health Check Troubleshooting mode corrects the issue. Using theme Twenty Twenty corrects the issue.
I didn’t understand why I couldn’t find any errors but I was only looking for WordPress and/or PHP errors.
‘block_editor_settings_all’ only appears in wp-includes/block-editor.php and wp-content/plugins/classic-editor.php.
Chrome Edit Page console output:
load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.1:5 JQMIGRATE: Migrate is installed, version 3.3.2 react-dom.min.js?ver=17.0.1:141 TypeError: l.styles.forEach is not a function at edit-post.min.js:7:93653 at Object.useMemo (react-dom.min.js:220:462) at c.useMemo (react.min.js:30:236) at zt (edit-post.min.js:7:93622) at Le (react-dom.min.js:100:3) at Pj (react-dom.min.js:231:183) at di (react-dom.min.js:168:305) at Nj (react-dom.min.js:168:236) at sc (react-dom.min.js:168:96) at gf (react-dom.min.js:162:109) Ye @ react-dom.min.js?ver=17.0.1:141 react-dom.min.js?ver=17.0.1:177 Uncaught TypeError: l.styles.forEach is not a function at edit-post.min.js:7:93653 at Object.useMemo (react-dom.min.js:220:462) at c.useMemo (react.min.js:30:236) at zt (edit-post.min.js:7:93622) at Le (react-dom.min.js:100:3) at Pj (react-dom.min.js:231:183) at di (react-dom.min.js:168:305) at Nj (react-dom.min.js:168:236) at sc (react-dom.min.js:168:96) at gf (react-dom.min.js:162:109) /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 405 () ? JQMIGRATE: Migrate is installed, version 3.3.2
Chrome New Page console output:
load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.1:5 JQMIGRATE: Migrate is installed, version 3.3.2 deprecated.min.js?ver=8778985ac0dfb16f24f8ef86d0718f43:2 wp.data.plugins.controls is deprecated since version 5.4. Note: The controls plugins is now baked-in. i @ deprecated.min.js?ver=8778985ac0dfb16f24f8ef86d0718f43:2 maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT react-dom.min.js?ver=17.0.1:141 TypeError: l.styles.forEach is not a function at edit-post.min.js:7:93653 at Object.useMemo (react-dom.min.js:220:462) at c.useMemo (react.min.js:30:236) at zt (edit-post.min.js:7:93622) at Le (react-dom.min.js:100:3) at Pj (react-dom.min.js:231:183) at di (react-dom.min.js:168:305) at Nj (react-dom.min.js:168:236) at sc (react-dom.min.js:168:96) at gf (react-dom.min.js:162:109) Ye @ react-dom.min.js?ver=17.0.1:141 react-dom.min.js?ver=17.0.1:177 Uncaught TypeError: l.styles.forEach is not a function at edit-post.min.js:7:93653 at Object.useMemo (react-dom.min.js:220:462) at c.useMemo (react.min.js:30:236) at zt (edit-post.min.js:7:93622) at Le (react-dom.min.js:100:3) at Pj (react-dom.min.js:231:183) at di (react-dom.min.js:168:305) at Nj (react-dom.min.js:168:236) at sc (react-dom.min.js:168:96) at gf (react-dom.min.js:162:109) (anonymous) @ edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 useMemo @ react-dom.min.js?ver=17.0.1:220 c.useMemo @ react.min.js?ver=17.0.1:30 zt @ edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 Le @ react-dom.min.js?ver=17.0.1:100 Pj @ react-dom.min.js?ver=17.0.1:231 di @ react-dom.min.js?ver=17.0.1:168 Nj @ react-dom.min.js?ver=17.0.1:168 sc @ react-dom.min.js?ver=17.0.1:168 gf @ react-dom.min.js?ver=17.0.1:162 Pa @ react-dom.min.js?ver=17.0.1:157 yd @ react-dom.min.js?ver=17.0.1:188 (anonymous) @ react-dom.min.js?ver=17.0.1:191 bi @ react-dom.min.js?ver=17.0.1:163 zd @ react-dom.min.js?ver=17.0.1:191 M.render @ react-dom.min.js?ver=17.0.1:243 Qt @ edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 (anonymous) @ post-new.php?post_type=page:378
Firefox Edit Page console output:
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. post.php JQMIGRATE: Migrate is installed, version 3.3.2 load-scripts.php:5:709 wp.data.plugins.controls is deprecated since version 5.4. Note: The controls plugins is now baked-in. deprecated.min.js:2:1538 TypeError: l.styles.forEach is not a function I https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 useMemo https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:220 useMemo https://sco.local/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1:30 zt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 Le https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:100 Pj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:231 di https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168 Nj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168 sc https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168 gf https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:162 Pa https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:157 yd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:188 zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191 bi https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:163 zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191 render https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:243 Qt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 _wpLoadBlockEditor https://sco.local/wp-admin/post.php?post=9072&action=edit:379 react-dom.min.js:141:274 Ye https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:141 callback https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:141 dh https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:80 Bj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:145 Qj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:176 unstable_runWithPriority https://sco.local/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1:24 Za https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:73 eb https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:170 gf https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:162 Pa https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:157 yd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:188 zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191 bi https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:163 zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191 render https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:243 Qt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 _wpLoadBlockEditor https://sco.local/wp-admin/post.php?post=9072&action=edit:379 Uncaught TypeError: l.styles.forEach is not a function I https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 useMemo https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:220 useMemo https://sco.local/wp-includes/js/dist/vendor/react.min.js?ver=17.0.1:30 zt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 Le https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:100 Pj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:231 di https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168 Nj https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168 sc https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168 gf https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:162 Pa https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:157 yd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:188 zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191 bi https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:163 zd https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:191 render https://sco.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:243 Qt https://sco.local/wp-includes/js/dist/edit-post.min.js?ver=e39d7d6fd4bb0895e642d448e76793d7:7 _wpLoadBlockEditor https://sco.local/wp-admin/post.php?post=9072&action=edit:379 edit-post.min.js:7:93610 Invalid URI. Load of media resource failed. post.php ?
Hi all,
I had “block_editor_settings”.
/** * Hack to remove embedded stylesheet in editor * * @link https://stackoverflow.com/a/58783057 * @link https://github.com/WordPress/gutenberg/issues/18595#issuecomment-599588153 */ /* add_filter('block_editor_settings', function ($settings) { unset($settings['styles'][0]); return $settings; });
Commenting out this code fixed my new and edit page white screen of death.
Many thanks @livog.
Hallo WordPress Fans,
will wordpress version 4.9.2 auf 5.9.2 aktuallisieren.
Bei strato ist Php 5.3 voreingestellt. Will Php 7.2 aktivieren bevor
ich das mache. Weiss jemand ob das funktioniert.Danke vorraus!!
I cannot find ‘block_editor_settings’ in my theme file. I’m using a Genesis theme. Is there somewhere in Genesis settings that I can look?
Whenever I try to save a post this message pops up:
Updating failed. The response is not a valid JSON response.I got help from a guy at Fivver (I’m not super savvy about WordPress, but I DID like the block feature.) The Fivver guy just disabled Gutenberg and restored the classic editor. Yeah, I can save but I would like to use the new features.
Can anyone suggest a plan so I can use the new Block Editor AND be able to save a post? Sorry if the answer is here in these responses and I just don’t understand what to do. I’m a bit fearful of editing my .php file.
- The topic ‘Gutenberg broken after WP 5.9 update’ is closed to new replies.