I created a website on my local windows machine using XAMPP 8.0.6. I just tried to access the website at http://localhost and get the following error. I have never seen it before. Please help.
HERE IS THE ERROR MESSAGE. PLEASE HELP. WHAT DO I DO?
Fatal error: Uncaught Error: Call to undefined function wp_should_load_separate_core_block_assets() in C:\xampp\htdocs\wp-includes\blocks.php:134 Stack trace: #0 C:\xampp\htdocs\wp-includes\blocks.php(310): register_block_style_handle(Array, 'editorStyle') #1 C:\xampp\htdocs\wp-includes\blocks.php(364): register_block_type_from_metadata('C:\\xampp\\htdocs...', Array) #2 C:\xampp\htdocs\wp-includes\blocks\index.php(83): register_block_type('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\wp-includes\class-wp-hook.php(292): register_core_block_types_from_metadata('') #4 C:\xampp\htdocs\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #5 C:\xampp\htdocs\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #6 C:\xampp\htdocs\wp-settings.php(560): do_action('init') #7 C:\xampp\htdocs\wp-config.php(90): require_once('C:\\xampp\\htdocs...') #8 C:\xampp\htdocs\wp-load.php(37): require_once('C:\\xampp\\htdocs...') #9 C:\xampp\htdocs\wp-blog-header.php(13): require_once('C:\\xampp\\htdocs...') #10 C:\xampp\htdocs\index.php(17): require('C:\\xampp\\htdocs...') #11 {main} thrown in C:\xampp\htdocs\wp-includes\blocks.php on line 134
There has been a critical error on this website.
Learn more about troubleshooting WordPress.