WordPress errors

How to fix a WordPress critical error

To fix a WordPress critical error, start with the recovery email or the error recorded by your host. Those details help you identify the failing plugin, theme or server setting without changing unrelated parts of your site. Follow the route below that matches the access you still have.

Time: 30-60 minutes for the initial checks Level: Guided troubleshooting
Neil McNaught, founder of BugShield and WordPress author
Written by
Written by
Updated
Updated

Understand the recovery routes still available

A critical error can leave you unable to open the site or reach the dashboard to undo the last change. WordPress has a recovery process for some of these failures, and your host can provide evidence when that process is unavailable. Start with the access you still have, preserve recent work and use the specific error to choose a repair.

WordPress Installed Plugins screen showing a Deactivate link beneath each active plugin
If the normal dashboard or Recovery Mode gives you access, the Plugins screen lets you deactivate the extension identified by the error. The unchanged 2020 training screenshot shows the control; none of its pictured plugins is being identified as faulty. Credit: WordPress Training Team / Learn WordPress, CC BY-SA 4.0.

Protect the site before trying a fix

The message There has been a critical error on this website means WordPress could not finish loading the page. It does not tell you which component failed or whether your content is damaged. Record the affected address, the time and the last change you made, such as updating Elementor or adding a code snippet.

Try your normal dashboard address in a new tab. If it opens, leave it open. Sign in to your hosting account separately and find its backup or restore-point screen. Keep a current copy as well as the last working backup; a full restore can replace orders and edits made since that backup. Our manual backup guide explains what needs saving.

Use the recovery email when it is available

Check the inbox and spam folder for the site's administration email address. WordPress can send a technical-issue email containing a private recovery link and the name of the failing component. Verify that the link points to your own domain before opening it, and keep the full link private.

  1. Open the recovery link and sign in with your normal administrator account. A Recovery Mode notice confirms that you entered the special session.
  2. Read the error notice. For an identified plugin, go to Plugins > Installed Plugins, find that plugin and choose Deactivate. Record its name and version first.
  3. When the notice identifies a theme, open Appearance > Themes and click Activate on an installed, suitable replacement. A theme change alters the design. Ask your host or developer if no suitable theme is available; follow the theme recovery guide if the dashboard cannot complete the switch.
  4. Select Exit Recovery Mode in the toolbar, then open the originally broken address in a private browser window. If it loads, continue to the repair section below so essential features are restored as well.

When no recovery email arrives

If the dashboard still opens and the error began immediately after a single plugin update, deactivate that plugin from the Plugins screen and repeat the failed action. When the dashboard is blocked, use your host's File Manager to rename only the identified plugin folder. Our deactivation guide covers finding the correct installation, recording the original folder name and restoring access.

If the cause is unknown, ask your host for the PHP error recorded at the time and address you noted. PHP is the software that runs WordPress on the server. Hosting panels can expose this information under Errors or Logs; the host can locate it when the menu is unclear. Request the relevant error, rather than sending them a complete database export.

An example path such as wp-content/plugins/example-plugin/file.php identifies code that was running when the failure occurred. It is a lead to investigate, not proof that the named plugin alone caused it. If the host needs a fresh reproduction, use our private debug logging guide before adding logging settings.

Choose the repair indicated by the evidence

Keep a plugin that causes the error disabled while you check its official support notes. A compatible fixed release can restore the missing feature. Test it on a staging copy, which is a separate copy of the site, before activating it for visitors.

  • An allowed memory size exhausted message leads to the memory error guide. Confirm that message before increasing a limit.
  • A parse or syntax error after a manual edit calls for reversing the damaged code change, rather than updating unrelated plugins.
  • For a failure after a PHP change, ask the host and plugin author which supported PHP versions the installed release accepts. Avoid choosing an old version solely because an online example uses it.
  • If a faulty update has no compatible fix, read the rollback checks before replacing files. Some updates also change stored data.

Confirm the site works outside recovery

Repeat the exact failed action, then check the homepage, an inner page and the dashboard. For an Elementor site, open and save a test draft. Submit a test form and, for a shop, complete a controlled checkout using the gateway's documented testing procedure. A working homepage alone does not confirm those features.

Record which component was changed and keep any affected feature unavailable until it passes its test. Turn off temporary logging using the logging guide, then remove its diagnostic file after securely retaining any evidence still needed.

Reference material

The recovery behaviour and file-access options are documented in WordPress Recovery Mode and the WordPress troubleshooting guide.

Get help with the next step

If the log is unclear, no usable backup exists or the failing component runs your shop, stop before broad plugin changes. Ask BugShield for help with the critical error. Share the affected page, timing and recent changes so a developer can assess the repair and confirm a price.

Questions answered

How to fix a WordPress critical error FAQs

Does a critical error mean my pages have been deleted?

The message reports a failure while loading WordPress. It does not establish that pages or orders have been deleted. Preserve a current backup before attempting a restore.

Why did the recovery email not arrive?

The administration address can be outdated, the message can be filtered, or the failure can interrupt email delivery. Check spam and ask your host for the matching PHP error when no message arrives.

Can I fix the error without editing PHP?

Yes, when Recovery Mode or the normal dashboard lets you deactivate the failing plugin. Hosting support can also help restore access. Only follow a file-editing route when its prerequisites are available.

Should I deactivate every plugin?

Start with the component identified by the recovery notice, log or recent change. Disabling all plugins also removes forms, shopping and other essential features. Use a staging conflict test for broader investigation.

Why does the error return when I reactivate the plugin?

Deactivation stops its code running but does not repair that code or resolve a compatibility problem. Leave it disabled until a compatible release, configuration correction or tested replacement fixes the original failure.

Need a hand with your WordPress site?

Tell us what happened and where you got stuck. A BugShield developer can help you work out the next step and confirm a price for the fix.

Explore help with this issue

Accessibility settings

Adjust how this site looks and moves. Your choices are saved in this browser.