Show me the Errors

Add this snippet of code at the top of the page to display any errors that may be thrown. Be sure to remove this code before pushing out to a production environment.

ini_set('display_errors', 1);

For wordpress specific sites, the following code is useful in the wp-config.php file if you are trouble shooting a live site, and don’t want to display errors to users:

if ( current_user_can( 'administrator' ) ) {
    define('WP_DEBUG_DISPLAY', true);
    ini_set('display_errors', 1);
Scroll to Top