wp error log config

  1. Access your WordPress website's files using either an FTP client or your web hosting control panel.
  2. Locate the wp-config.php file in the root directory of your WordPress installation.
  3. Open the wp-config.php file using a text editor.
  4. Add the following line of code to enable error logging: define( 'WP_DEBUG_LOG', true );
  5. Save the changes to the wp-config.php file and upload it back to your server.
  6. To view the error logs, navigate to wp-content directory via FTP or file manager and look for a file named debug.log.