To enable debug and debug log to your WordPress site please copy and paste following 2 lines to your WordPress root directory under config.php
file
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true );
And then save or update config.php
file, then try to regenerate errors on your site, you will see there is a file created under the following path
wp-content/debug.log
How to find config.php file on your host, please follow the screenshot step by step
Add the code before line /* That's all, stop editing! Happy blogging. */
Go to /wp-content
directory to see the debug.log
file