【发布时间】:2020-01-07 07:15:41
【问题描述】:
我正在开发自定义 wordpress 插件,我需要显示 php 错误。
// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',1);
在上面尝试过,但仍然收到此消息:(
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
不是错误
【问题讨论】:
-
请检查您上次添加的代码或插件的删除。它会产生这种类型的错误。也检查您的电子邮件。