Skip to main content

How to Troubleshoot the WordPress “There Has Been a Critical Error” Message

The "There Has Been a Critical Error" message indicates that a PHP script has encountered a fatal error, preventing the WordPress site from loading. This article helps a Site Administrator identify the cause of the error and restore site access.

The "There Has Been a Critical Error" message indicates that a PHP script has encountered a fatal error, preventing the WordPress site from loading. This article helps a Site Administrator identify the cause of the error and restore site access.

Before you begin

You will need:

  • Administrator access to the WordPress dashboard (if available) or access to the site's files and database via a hosting control panel.

  • Access to the site's email account associated with the WordPress admin.

Identify the source of the error

When a critical error occurs, WordPress often attempts to email the site administrator with specific details about the failure.

  1. Check the email account associated with your WordPress administrator account.

  2. Look for an email with the subject "Your Site is Experiencing Critical Technical Issues."

  3. Open the email to identify the specific plugin or theme causing the conflict.

  4. Note the file path and the line number where the error occurred.

Access the site via the "Recovery Mode" link

If the email was received, it will contain a link to enter the site in Recovery Mode.

  1. Click the link provided in the "Critical Technical Issues" email.

  2. Log in to the WordPress dashboard using your administrator credentials.

  3. Identify the plugin or theme listed as the cause of the error.

  4. Deactivate the problematic plugin or theme.

  5. Refresh your website to confirm it is accessible.

Manually disable a plugin or theme via File Manager

If you did not receive an email or cannot access the site via the recovery link, you must manually disable the problematic component.

  1. Log in to your hosting control panel (e.g., cPanel or Windows Control Panel).

  2. Open the File Manager.

  3. Navigate to the directory where WordPress is installed.

  4. Go to the wp-content folder.

  5. Open the plugins folder.

  6. Locate the folder for the plugin identified as the cause of the error.

  7. Rename the folder (e.g., change plugin-name to plugin-name_old).

  8. Refresh your website.

Manually disable a theme via File Manager

If a theme is causing the error and you cannot access the dashboard:

  1. Log in to your hosting control panel and open the File Manager.

  2. Navigate to wp-content/themes.

  3. Locate the folder for the active theme.

  4. Rename the folder (e.g., change theme-name to theme-name_old).

  5. Refresh your website. WordPress will automatically fall back to a default theme.

Confirm the result

  • The "There Has Been a Critical Error" message is replaced by your website's homepage.

  • You can successfully log in to the WordPress dashboard.

If the error persists after deactivating the plugin or theme

If the site remains inaccessible after deactivating the suspected plugin or theme, the issue may be related to a different plugin or a core WordPress file.

  1. Repeat the "Manually disable a plugin" steps for other recently updated or modified plugins.

  2. Check for a .htaccess file error by renaming the .htaccess file to .htaccess_old and testing the site.

  3. If the site remains down, contact Hostek support and provide the "Critical Technical Issues" email or the specific error text you are seeing.

Did this answer your question?