我以前有这个问题。
要调试问题,我修改了wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
logs写入文件
wp-content/debug.log
。
然后我意识到这是PHP内存限制问题,因此我修改了我的php.ini
max_execution_time = 300
memory_limit = 256M
post_max_size = 64M
upload_max_filesize = 64M
debug.log