wordpress error log

  1. Log in to your WordPress hosting account.
  2. Navigate to the root directory of your WordPress installation using an FTP client or the file manager provided by your hosting provider.
  3. Look for the "wp-config.php" file and download it to your local computer.
  4. Open the "wp-config.php" file using a text editor.
  5. Search for the line that says "define('WP_DEBUG', false);" and change it to "define('WP_DEBUG', true);".
  6. Add the following line of code after the line you just modified: "define('WP_DEBUG_LOG', true);".
  7. Save the changes to the "wp-config.php" file and upload it back to the root directory of your WordPress installation, overwriting the existing file if prompted.
  8. Now, trigger the error on your WordPress site that you want to log.
  9. Once you've triggered the error, go back to the root directory of your WordPress installation and look for a file named "debug.log".
  10. Open the "debug.log" file using a text editor to view the detailed error log.