In wp-config.php I have included:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
As I understand, this should display certain information on every page, also if there are no errors. However, nothing has changed. In addition, no file public_html/debug.log has been generated…
Any idea how to get into debug mode?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
The constant to output errors to screen is actually
define( 'WP_DEBUG_DISPLAY', true );
WP_DEBUG_LOG would generate a debug.log in your wp-content directory, not in your site root.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0