Support / Documentation / / Enabling error logging

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 WP Log Viewer which can enable error logging from your WordPress admin area.

Go Pro

Get every single Sunshine add-on and access to premium support for only $99

Oh, and we offer a 30 day money back guarantee to sweeten the deal... because we don't think you will need it anyway.

Learn more