Here is the simplest way to understand and enable WP_DEBUG_LOG to check for errors on your website.
What is WP_DEBUG_LOG?
When things go wrong behind the scenes (like a broken feature or an error), WordPress writes the details down in the debug log.
Turning WP_DEBUG and WP_DEBUG_LOG on helps you or a support team figure out exactly what is causing a problem on your site.
How to Enable It
Option 1: The Easiest Way (Recommended)
If you aren’t comfortable touching website code, the safest and easiest method is to use a free plugin: Debug Log Manager
Simply install and activate this plugin. It lets you turn on the error log and read it right from your WordPress dashboard, completely skipping the need to edit code or use complicated file managers.
Option 2: The Normal Way (Manual)
If you prefer to do it manually, you will need to access your website files through your hosting account.
- Find and open the file named
wp-config.php. - Scroll down until you find the line that says:
/* That's all, stop editing! Happy publishing. */ - Paste these exact two lines right above it:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
- Save the file.
That’s it! WordPress will now start logging errors into a file called debug.log (located inside your wp-content folder), which you can download and read to see what went wrong.

