WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()

What comes to my mind is that You should check Your wp-settings.php file, as it should include wp-includes/blocks.php file where “register_block_type_from_metadata” function is defined

check that file for this line of code:

require ABSPATH . WPINC . '/blocks.php';

if its not there, then Your wordpress installation could have been either hacked or interupted while updating

As We find Out, register_block_type_from_metadata function definition was missing in blocks.php file, due to wordpress update interuption. Replacing that file with the original version fixes the problem

Leave a Comment