wordpress move debug.log

  1. Access the WordPress root directory using an FTP client or file manager.

  2. Locate the "wp-config.php" file in the root directory.

  3. Open the "wp-config.php" file for editing.

  4. Add the following line of code to the file, just before the "/ That's all, stop editing! /" comment: php define( 'WP_DEBUG_LOG', true );

  5. Save and close the "wp-config.php" file.

  6. Replicate the issue on your WordPress site to generate debug information.

  7. Access the WordPress root directory again and look for a file named "debug.log."

  8. Download or open the "debug.log" file to review the generated debug information.

  9. Once you have reviewed the debug information, it is advisable to remove or comment out the "define( 'WP_DEBUG_LOG', true );" line from the "wp-config.php" file to prevent further logging.

  10. Save the changes to the "wp-config.php" file after removing or commenting out the line.