致命错误:未捕获错误:调用未定义的函数
Fatal error: Uncaught Error: Call to undefined function wp_register_block_style_variations_from_theme_json_partials() in C:\xampp\htdocs\project2\wp-includes\class-wp-theme-json-resolver.php:266 Stack trace: #0 C:\xampp\htdocs\project2\wp-includes\class-wp-theme-json-resolver.php(668): WP_Theme_JSON_Resolver::get_theme_data() #1 C:\xampp\htdocs\project2\wp-includes\global-styles-and-settings.php(182): WP_Theme_JSON_Resolver::get_merged_data() #2 C:\xampp\htdocs\project2\wp-includes\script-loader.php(2507): wp_get_global_stylesheet() #3 C:\xampp\htdocs\project2\wp-includes\class-wp-hook.php(324): wp_enqueue_global_styles(”) #4 C:\xampp\htdocs\project2\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 C:\xampp\htdocs\project2\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #6 C:\xampp\htdocs\project2\wp-includes\script-loader.php(2265): do_action(‘wp_enqueue_scri…’) #7 C:\xampp\htdocs\project2\wp-includes\class-wp-hook.php(324): wp_enqueue_scripts(”) #8 C:\xampp\htdocs\project2\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #9 C:\xampp\htdocs\project2\wp-includes\plugin.php(517):
我无法查看 localhost/project2
WP_Hook->do_action(Array) #10 C:\xampp\htdocs\project2\wp-includes\general-template.php(3050): do_action(‘wp_head’) #11 C:\xampp\htdocs\project2\wp-content\themes\woostify\header.php(12): wp_head() #12 C:\xampp\htdocs\project2\wp-includes\template.php(810): require_once(‘C:\\xampp\\htdocs…’) #13 C:\xampp\htdocs\project2\wp-includes\template.php(745): load_template(‘C:\\xampp\\htdocs…’, true, Array) #14 C:\xampp\htdocs\project2\wp-includes\general-template.php(48): locate_template(Array, true, true, Array) #15 C:\xampp\htdocs\project2\wp-content\themes\woostify\page.php(13): get_header() #16 C:\xampp\htdocs\project2\wp-includes\template-loader.php(106): include(‘C:\\xampp\\htdocs…’) #17 C:\xampp\htdocs\project2\wp-blog-header.php(19): require_once(‘C:\\xampp\\htdocs…’) #18 C:\xampp\htdocs\project2\index.php(17): require(‘C:\\xampp\\htdocs…’) #19 {main} thrown in C:\xampp\htdocs\project2\wp-includes\class-wp-theme-json-resolver.php on line 266
There has been a critical error on this website.