Debug.log file is never created?

It’s the first I have seen this. In a project I’m working on, I tried to switch on the debug mode for wordpress to see logs. Even if I activate the debug_log in wp-config.php, debug.log file is never created in /htdocs/wp-content/ wp-config.php define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG_DISPLAY’, false); @ini_set(‘display_errors’,0); define(‘SCRIPT_DEBUG’, true); wp-content dir rights load.php … Read more

Debugging in WordPress

In Visual Studio, you can easily debug your application by running Debug mode and setting breakpoints in your application. In WordPress, how would you achieve same thing? I have an issue in my website and there are no error or warnings thrown. I have spent enough time tweaking settings to figure this out without luck. … Read more

Suppress deprecated notices

When I use: define(‘WP_DEBUG’, 1); In my wp-config.php, it works fine, but I am hacking an old theme and I would like to suppress deprecated notices. My understanding is that adding this: error_reporting( E_ERROR | E_NOTICE | E_PARSE ) Should do the trick. I have added it to wp-config.php and to header.php in my theme. … Read more