规格:
第一个错误(未找到所有页面)
我做了什么:
第二个错误(白屏死机)
我做了什么:
来自 php_errorlog 的错误消息
[21-Oct-2020 03:00:51 UTC] PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /my-site/wp-includes/widgets.php:1265
Stack trace:
#0 /my-site/wp-includes/widgets.php(1265): array_merge(wp_inactive_widgets: Array, sidebar-1: Array, sidebar-2: Array, sidebar-3: Array, sidebar-4: Array, sidebar-5: Array, sidebar-6: Array, sidebar-7: Array)
#1 /my-site/wp-includes/widgets.php(1220): retrieve_widgets(true)
#2 /my-site/wp-includes/class-wp-hook.php(289): _wp_sidebars_changed('Site Name')
#3 /my-site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#4 /my-site/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#5 /my-site/wp-includes/theme.php(3267): do_action('after_switch_th...', 'Site Name', Object(WP_Theme))
#6 /my-site/wp-includes/class-wp-hook.php(287): check_theme_switched('')
#7 /my-site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#8 /my-site/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#9 /my-site/wp-settings.php(546): do_action('init')
#10 /my-site/wp-config.php(80): require_once('/directory/...')
#11 /my-site/wp-load.php(37): require_once('/directory/...')
#12 /my-site/wp-blog-header.php(13): require_once('/directory/...')
#13 /my-site/index.php(17): require('/directory/...')
#14 {main}
thrown in /my-site/wp-includes/widgets.php on line 1265
解决了!
在 htaccess 上注释掉这一行
AddHandler application/x-httpd-php80 .php .php5 .php4 .php3
并禁用了一些插件,例如goodbye-captcha
一切又恢复正常了