在里面wp-config.php, 设置以下内容(如果尚未设置):
define( \'WP_DEBUG\', true );
define( \'WP_DEBUG_LOG\', true );
define( \'WP_DEBUG_DISPLAY\', false );
@ini_set( \'display_errors\', 0 );
这将确保站点上不会显示任何错误,但是WordPress会将所有错误记录在
debug.log 中的文件
/wp-content/ 目录
注意:您必须在/* That\'s all, stop editing! Happy blogging. */ 在wp-config.php 文件
您可以在下面的Codex Document.