admin管理员组文章数量:1122832
I am developing a plugin. I am getting an error when activating, but I can't find out what is causing the error, even which file is causing the error.
I don't receive an email for the fatal error, and nothing is added to the error_log file.
How can I find out what is causing the error?
Update:
Here's the code I'm using in the main plugin php file for error reporting:
//Turn on error reporting
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
ini_set('log_errors', TRUE);
ini_set('error_log', '/my path/wp-content/plugins/pbcsc_cat_by_sub_cat/errors.log');
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
error_reporting(E_ALL);
error_log('ajet.php starting');
//Set mysqli to report errors
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
The error message I get when trying to activate the plugin is:
Plugin could not be activated because it triggered a fatal error.
本文标签: phpError message not appearing in error email or in the error log
版权声明:本文标题:php - Error message not appearing in error email or in the error log 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736300599a1930873.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论