0
我是新來的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');
,您可以登錄管理員?如果是這樣 - 嘗試重新激活你的主題。另外,如果您禁用調試會發生什麼情況?你的日誌說什麼?我也想的ini_set( 'display_errors設置',1)改變';''到@ini_set( '的display_errors',1);' –
不,我甚至不能登錄到管理員,我嘗試設置@ini_set( '的display_errors',1 );不工作 – json2021
這將意味着你有一些bug,或者語法錯誤/ –