WordPress 安装错误 - 警告:call_user_func_array() 期望参数 1 是有效的回调,函数"_add_default_theme_supports"不是



在实时服务器上安装WordPress后,请帮助我解决此错误,而本地服务器给了我此错误并警告我无法在本地服务器上获得该网站。我正在使用Laragon作为本地服务器。请协助。我收到的错误消息如下。

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_add_default_theme_supports' not found or invalid function name in C:laragonwwwrsbenterprisewp-includesclass-wp-hook.php on line 307
Fatal error: Uncaught Error: Call to undefined function wp_json_file_decode()
in C:laragonwwwrsbenterprisewp-includesblocks.php:238 
Stack trace: 
#0 C:laragonwwwrsbenterprisewp-includesblocksarchives.php(119): register_block_type_from_metadata('C:\laragon\www\...', Array) 
#1 C:laragonwwwrsbenterprisewp-includesclass-wp-hook.php(307): register_block_core_archives('') 
#2 C:laragonwwwrsbenterprisewp-includesclass-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) 
#3 C:laragonwwwrsbenterprisewp-includesplugin.php(470): WP_Hook->do_action(Array) 
#4 C:laragonwwwrsbenterprisewp-settings.php(578): do_action('init') 
#5 C:laragonwwwrsbenterprisewp-config.php(90): require_once('C:\laragon\www\...') 
#6 C:laragonwwwrsbenterprisewp-load.php(50): require_once('C:\laragon\www\...') 
#7 C:laragonwwwrsbenterprisewp-adminadmin.php(34): require_once('C:\laragon\www\...') 
#8 C:laragonwwwrsbenterprisewp-adminindex.php(10): require_once('C:\laragon\www\...') 
#9 {main} thrown in C:laragonwwwrsbenterprisewp-includesblocks.php on line 238
There has been a critical error on this website. Please check your site admin email inbox for instructions.

wp_json_file_decode((实用程序函数首次出现在WordPress的5.9版本中。

您的错误消息指向从以前的WordPress版本到5.9的不完整或损坏的更新。

解决这个问题的一个好方法是:转到网站的工作版本,然后使用迁移插件捕获工作网站并将其迁移到新服务器。

相关内容

  • 没有找到相关文章

最新更新