A WordPress critical-error message does not usually show the underlying PHP error to visitors. Checking the error log around the time of the failure can help identify the affected file or component.

Find the relevant log

  1. Note the time of the error and the page or action that triggered it.
  2. In cPanel, open Metrics > Errors to review recent server error entries if available.
  3. Open File Manager and navigate to the WordPress installation’s actual directory. It may differ from public_html.
  4. Look for an error_log file if your hosting configuration writes one there. Use View to read it.
  5. If WordPress debug logging was already enabled, also check its configured log location, commonly wp-content/debug.log.

An absent log file does not mean there were no errors. Ask your provider where PHP errors are recorded if you cannot find the relevant entries.

Review the entries

Match timestamps with the failure and look for messages such as Fatal error or Uncaught. Record the message and file path before changing anything. The last file mentioned may be where the failure appeared, rather than its original cause.

Share only the relevant lines with an authorised administrator, removing credentials or private information. Enable temporary debugging on a staging copy where possible, and disable it when finished rather than displaying errors to visitors.