Paymill is overriding WP_DEBUG settings
-
I just spent an hour trying to figure out why my site was not reporting errors. It turned out that Paymill was the offending plugin.
You are turning error reporting off here: https://plugins.trac.www.ads-software.com/browser/paymill/trunk/paymill.php#L36
However, this is a very bad practice – your plugin should respectWP_DEBUG
settings instead.I think the whole block of code starting from line 18 to 38 should be removed. All that you are doing is checking if a log file exists and if so, start logging errors. If not, then turn off error reporting. But – this is all already handled by using
WP_DEBUG
andWP_DEBUG_LOG
.Make sure you understand how it works: https://codex.www.ads-software.com/WP_DEBUG – and provide a fix for this.
- The topic ‘Paymill is overriding WP_DEBUG settings’ is closed to new replies.