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
- Note the time of the error and the page or action that triggered it.
- In cPanel, open Metrics > Errors to review recent server error entries if available.
- Open File Manager and navigate to the WordPress installation’s actual directory. It may differ from
public_html. - Look for an
error_logfile if your hosting configuration writes one there. Use View to read it. - 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.