How to Check WordPress Error Logs to Diagnose Critical Errors

April 15, 2024 / Web Development

This guide explains how to locate and review WordPress error logs to identify the cause of the “There Has Been a Critical Error on This Website” message. Checking error logs helps pinpoint the exact file and error responsible for the issue, making troubleshooting easier.

Here is how:

  1. Log in to cPanel.
  2. Click on the “File Manager” sub-option, under the “Files” section.
    File Manager
  3. Navigate to the “public_html” folder.
    public_html
  4. Find the file named “error_log”.
  5. Simply right-click on the “error_log” file and select “Open” to view its contents.
    Important note- If you do not have cPanel, you can use an FTP client such as FileZilla.
    error_log
  6. Navigate to your WordPress installation directory and locate the “public_html” folder. Then, search for files named “error_log.”
  7. Now, open the error log file and find the error message with the exact reason.
  8. Once you identify the error, you can troubleshoot and fix it.

Hope you liked our article. If you want the latest information, visit our KB section regularly.

Spread the love