Menu Close

The Block was Affected by Errors and may not Function Properly

Widget Blocks Break with Latest WordPress Update

At Masters of WordPress, we are always on the lookout for essential updates that could affect your WordPress and/or WooCommerce experience. Today, we want to share with you a significant security update flaw that breaks blocks with the latest WordPress update and how to fix it.

What is the Update Version?

The error seems to occur after updating to WordPress 6.4.1 though some users have reported the error in WordPress 6.4 as well.

What is the Error?

After updating to WordPress 6.4.1, users are seeing the following errors within the Widgets page:

• The “media_image” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “custom_html” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “nav_menu” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “text” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “comments” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “meta” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “archives” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “recent_comments” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “categories” block was affected by errors and may not function properly. Check the developer tools for more details.

• The “recent_posts” block was affected by errors and may not function properly. Check the developer tools for more details.

Widget block errors

How to Fix the WordPress Update Block Errors – Solution One

There are two ways to address the issue. One is with a free WordPress plugin called Classic Widgets which basically restores the new block widget editor with the previous widget editor. The plugin was developed by the WordPress team and will be supported until it is no longer needed.

How to Fix the WordPress Update Block Errors – Solution Two

If you’re comfortable working with code and already have a child theme set up, you can simply copy and paste the following code into your functions.php file.

/***********************************************************************
   November 13, 2023 - Masters of WordPress
	Known Issue with WordPress Blocks and Widgets Workaround
 ***********************************************************************/
add_filter( 'use_widgets_block_editor', '__return_false' );

Need Help or Have Questions?

If you have any questions or concerns about this update or need help maintaining your WordPress or WooCommerce website, don’t hesitate to get in touch with our dedicated WordPress team. Stay safe, stay updated and keep mastering WordPress with us!