Skip to content

Enabling error logging

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

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.

You can also try the 3rd party plugin called Error Log Viewer which can enable error logging from your WordPress admin area.

Still need help?

If you have not yet found your answer in the documentation articles, please contact support