Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work

I've got the proper debugging constants defined in wp-config.php:

define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);
define('WP_DEBUG_LOG', true);

But they're not doing a darn thing. When I output something to the log file from my plugin (even without testing for WP_DEBUG === true) like this nothing happens on-screen and there's no debug.log to be found either:

error_log('test!');

I'm sure that part of the code in the plug is being executed. What gives? I'm using WP 3.6.1. Thanks.

Topic debug errors plugins Wordpress

Category Web


In my case, the below code worked for me. You should enter it in wp-config.php and above "/* That's all, stop editing! Happy blogging. */":

@ini_set('display_errors', 1);

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.