2016-06-20 6 views
0

私はワードプレスを初めて使用しています。私はプラグインに取り組んでいて、管理ページを白く更新しました。私は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'); 
+0

にそれを変更し、私は、文字列を使用してABSPATHをラップしませんでした

問題... ..

if(!defined(ABSPATH)){ exit; } 

を見つけました管理者に?もしそうなら、あなたのテーマを再活性化してみてください。また、デバッグを無効にするとどうなりますか?あなたのログは何を言いますか?私は 'ini_set( 'display_errors'、1);を' @ini_set( 'display_errors'、1); ' –

+0

に変更します。いいえ管理者にもログインできません、@ini_set( 'display_errors'、1 );あなたがいくつかのバグ、または構文エラー/ – json2021

+0

がうまくいきません。元の質問の貼り付けられたコードには、一重引用符があります.. 'if(!ABSPATH ') define(' ABSPATH '、dirname(__ FILE__)。'/'); ' –

答えて

0

は、私は私はあなたがログインすることができ

if(!defined("ABSPATH")){ 

    exit; 
} 
+0

を持っていることを意味する –

関連する問題