我是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');发布于 2016-06-21 01:24:52
我发现了问题所在。
我没有使用字符串包装ABSPATH ..
if(!defined(ABSPATH)){
exit;
}我把它改成
if(!defined("ABSPATH")){
exit;
}https://stackoverflow.com/questions/37927651
复制相似问题