在 wp-config.php 文件中,找到 define('WP_DEBUG', false); 这一行,用以下三行代码替换它(或者如果你已经将其改为了 true,则在它下面添加后两行):
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
然后网站有错误的时候,就可以在.../wp-content/debug.log文件中查看了

在 wp-config.php 文件中,找到 define('WP_DEBUG', false); 这一行,用以下三行代码替换它(或者如果你已经将其改为了 true,则在它下面添加后两行):
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
然后网站有错误的时候,就可以在.../wp-content/debug.log文件中查看了
没有回复内容