1. locate the wp-config in the wordpress dir, either by ftp or file manager on your host dashboard.
  2. search for the word “debug”, sometimes it’s found as:
define( 'WP_DEBUG', false );
  1. edit the false to true and enter a new line below adding the following:
define( 'WP_DEBUG_LOG', true );
  1. the final result will be as two lines, one to enable the debugging feature and the second to enable the logging. Just make sure to disable the debugging once you’re finished with investigation, as this feature might show errors to your site visitors.
  2. This is the final look:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

The log file can be found under /wp-content/ folder and it’s named debug.log

Tagged in:

,