How to View WordPress Errors
You can view WordPress errors and messages by enabling WordPress Debug Mode. For instructions, see:
How to Enable WordPress Debug Mode
To log PHP errors without displaying them on the website, add the following lines to the wp-config file in your WordPress root directory:
log_errors = On error_log = "/home/USER/domains/DOMAIN/public_html/PHP_errors.log" error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR
Replace USER with your DirectAdmin username and DOMAIN with your domain name to create the correct file path.
After saving the file, a log file named PHP_errors.log will be created in your website's root directory. If the file does not appear, either the configuration is incorrect, or there are no errors to log.