- locate the wp-config in the wordpress dir, either by ftp or file manager on your host dashboard.
- search for the word “debug”, sometimes it’s found as:
define( 'WP_DEBUG', false );
- edit the false to true and enter a new line below adding the following:
define( 'WP_DEBUG_LOG', true );
- 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.
- 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