-
-
Save indikatordesign/562bd70a286a82b89f962332a9399d5d to your computer and use it in GitHub Desktop.
[WordPress Debug.log]Allows you to write the debug.log right into the wp-content-folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Turn on "debug.log" and then open the pages where the problem occurs. Here with this snippet you can enable the "debug.log" | |
// Add the snippet below in the file wp-config.php right above: /* That's all, stop editing! Happy blogging. */ | |
// Make sure that the constant "WP_DEBUG" has not already been defined. | |
// Afterwards You will find the file "debug.log" in your "wp-content" folder. | |
define('WP_DEBUG', true ); | |
if ( WP_DEBUG ) | |
{ | |
define('SAVEQUERIES', true ); | |
define('SCRIPT_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
} // end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment