1. Knowledge Base
  2. >
  3. Results
  4. >
  5. How to Fix the Critical Error on Your WordPress Website

How to Fix the Critical Error on Your WordPress Website

A critical error message similar to the one below is what you want to get immediately fixed.

"There has been a critical error on your website. Please check your site admin email inbox for instructions."

Note: In PHP 5.3, the admin email gets checked from time to time to ensure the admin email address setting is proper and working.

  1. Make sure the admin email address is right, and the email function of your host works.
  2. Check your Spam folder. Some emails, particularly this one, often get routed to your Spam folder.
  3. Make sure your PHP is updated. (Most issues are resolved by doing this.)
  4. Look for the Error log in your server. To do this, follow the steps provided:
    1. Go to cPanel Dashboard and look for File Manager.

      cPanel File Manager

    2. Go to public_html of your domain. If you have multiple domains, access the folder of the domain concerned.

      Public Html

    3. Look for the error_log. The latest error entry will be at the bottom, which has date and time indicated on it. However, if you still don't see any error message, proceed to the next steps below.

      Error Log

    4. Enable wp_debug and wp_debug_log by going back to public_html, or the folder of your domains, if you have multiple domains.
    5. Look for wp_config. Do a right-click and choose Edit.

      WP Config

    6. Look for the script define( 'WP_DEBUG', false ). This is right before the statement, "That's all, stop editing! Happy publishing" at the bottom.

      Define WP Debug False

    7. Insert define( 'WP_DEBUG', false ) on the next line.

      Define WP Debug Log False

    8. Change the words "false" to "true."

      Define WP Debug Log True

    9. Click Save Changes on the upper-right side.

      Confirm Save Changes

     

  5. Attempt to disable all plugins, and use one of the default themes. The current one is Twenty Twenty.
  6. If the problem goes away, enable them one-by-one to identify the source of your troubles.

If these steps still do not resolve the issue, contact HostGator via phone or Live Chat for additional assistance.

Read the helpful articles below on WordPress troubleshooting: