Home / Documentation / General Help / Enable error logging

Enable error logging

Often times we need to see what PHP errors are appearing in order to help identify an issue on your site. WordPress makes this pretty easy to enable:

Using FTP or your web host’s file manager application, find your wp-config.php file and add the following code:

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

This will enable debug mode and also write all errors to a log file. That log file will appear as debug.log in your “wp-content” folder. Example: www.yourdomain.com/wp-content/debug.log. Some web hosts prevent public access to this file for security reasons and you may only be able to access the file via FTP or your web host’s file manager application.