启用调试后,为什么我会看到白屏?

时间:2016-06-20 16:39:19

标签: wordpress

我是wordpress的新手。我一直在研究插件,当我刷新管理页面时它是白色的。我已经启用了wp-config文件中的所有调试选项,但仍显示白屏。我已经删除了我正在处理的插件上的所有代码,我认为它导致白屏仍然没有任何反应。

有谁知道我还能调试这个问题吗?

下面是我的wp-config文件。我不知道我是否遗漏了任何东西。

**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the Codex.
 *
 * @link https://codex.wordpress.org/Debugging_in_WordPress
 */
error_reporting(E_ALL); ini_set('display_errors', 1);
define('WP_DEBUG', TRUE);



// Tells WordPress to log everything to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);

// Doesn't force the PHP 'display_errors' variable to be on
define('WP_DEBUG_DISPLAY', TRUE);

// Hides errors from being displayed on-screen
//@ini_set('display_errors', 0);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

1 个答案:

答案 0 :(得分:0)

我发现了这个问题......

我没有使用字符串包装ABSPATH ..

if(!defined(ABSPATH)){

    exit;
}

我把它改成了

if(!defined("ABSPATH")){

    exit;
}