After upgrading WP to 6.0 the Edit post page is blank with the following errors in Chrome dev tools:
Uncaught Error: Minified Redux error #7; visit https://redux.js.org/Errors?code=7 for the full message or use the non-minified dev environment for full errors.
at b (data.min.js?ver=38ad563aa39c8f314fe6f6e430d81a69:2:8433)
at redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1:2:1797
at data.min.js?ver=38ad563aa39c8f314fe6f6e430d81a69:2:10824
at Object.dispatch (data.min.js?ver=38ad563aa39c8f314fe6f6e430d81a69:2:11136)
at Object.__experimentalReapplyBlockTypeFilters (data.min.js?ver=38ad563aa39c8f314fe6f6e430d81a69:2:14301)
at Module.ha (edit-post.min.js?ver=0066e2a76eff88129280c12c9a52b6b4:7:110375)
at HTMLDocument.<anonymous> (post-new.php:2477:25)
I’ve disabled all plugins and reverted to the default 2022 theme, but the problem continues.
After examining the files in question, I discovered that they were being utilized by the Gutenberg editor, so I temporarily disabled it by adding the following code to my theme functions.php file:
add_filter('use_block_editor_for_post', '__return_false', 10);
I may now create new posts or update existing ones as usual.
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂
What function did you use to prepend the add_filter?
Hello,
add_filter is a built-in function that I use to disable the Gutenberg editor with the use_block_editor_for_post hook.
source: https://developer.wordpress.org/reference/functions/use_block_editor_for_post/