将wordpress更新为5.0后获得错误消息。网站已关闭,并且error.log文件中出现以下错误。如何解决此问题并使我的网站重新启动并运行。
我遇到500错误。
PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_check_term_meta_support_prefilter' not found or invalid function name in /var/www/html/ampletrails.com/public_html/wp-includes/class-wp-hook.php on line 288
PHP message: PHP Fatal error: Uncaught Error: Call to undefined method WP_Scripts::set_translations() in /var/www/html/ampletrails.com/public_html/wp-includes/script-loader.php:490\nStack trace:
#0 /var/www/html/ampletrails.com/public_html/wp-includes/script-loader.php(740): wp_default_packages_scripts(Object(WP_Scripts))
#1 /var/www/html/ampletrails.com/public_html/wp-includes/class-wp-hook.php(286): wp_default_packages(Object(WP_Scripts))
#2 /var/www/html/ampletrails.com/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /var/www/html/ampletrails.com/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#4 /var/www/html/ampletrails.com/public_html/wp-includes/class.wp-scripts.php(148): do_action_ref_array('wp_default_scri...', Array)
#5 /var/www/html/ampletrails.com/public_html/wp-includes/class.wp-scripts.php(131): WP_Scripts->init()
#6 /var/www/html/ampletrails.com/public_html/wp-includes/functions.wp-scripts.php(23): WP_Scripts->__construct()
#7 /var/w...'