Video thumbnail for How To Turn On Error Messages For WordPress

How To Turn On Error Messages For WordPress

Nov 24, 2023
Errors are a part of WordPress websites. Error messaging helps you identify issues and how to fix them. To enable it, open the wp-config.php file in the root directory. Change define('WP_DEBUG', false); to define('WP_DEBUG', true);. To get comprehensive error reports, add define('WP_DEBUG_LOG', true); and define('WP_DEBUG_DISPLAY', false); below it. This turns on error messages and logs them into a debug.log file in the wp-content directory. Access this file using FTP or through your hosting provider’s file manager. Studies show that most WordPress sites have at least one vulnerability. Error messaging assists you in finding out what went wrong.