首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么启动调试后会出现白屏?

为什么启动调试后会出现白屏?
EN

Stack Overflow用户
提问于 2016-06-21 00:39:19
回答 1查看 41关注 0票数 0

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

有没有人知道我如何调试这个问题?

下面是我的wp-config文件。我不知道我是不是错过了什么。

代码语言:javascript
复制
**
 * 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');
EN

回答 1

Stack Overflow用户

发布于 2016-06-21 01:24:52

我发现了问题所在。

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

代码语言:javascript
复制
if(!defined(ABSPATH)){

    exit;
}

我把它改成

代码语言:javascript
复制
if(!defined("ABSPATH")){

    exit;
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37927651

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档