Sébastien Laframboise

Critical WordPress error: what to do before panicking

Critical WordPress error: what to do before panicking

Seeing the message «A critical error has occurred on this website» can be stressful. In most cases, however, a WordPress critical error can be fixed quickly if you follow a logical process. Before editing files at random or reinstalling your site, I always recommend proceeding step by step.

Understanding what a WordPress critical error is

A critical error generally means something is preventing WordPress from properly executing PHP code. This can be caused by a plugin, a theme, an incomplete update, or a conflict between different site components.

For several versions now, WordPress even attempts to send an email containing technical information to help identify the source of the problem.

First step: don’t delete anything right away

The worst reaction is often to delete files without knowing what’s causing the error. First, take a few minutes to assess the situation.

  • Has an update just been performed?
  • Has a new plugin been installed recently?
  • Has the theme been changed?
  • Is the problem affecting the entire site or only certain pages?

These clues often help quickly pinpoint the source of the problem.

Enable WordPress debug mode

Next, it’s often useful to enable debug mode. This feature records errors to a log to provide more technical information.

Specifically, simply edit the wp-config.php file and enable the debug settings. The recorded messages can reveal which plugin or file is generating the error.

Test plugins and the theme

In my experience, plugins remain the most frequent cause of a WordPress critical error.

If you have access to your hosting via FTP or the file manager, temporarily rename the plugins folder. If the site starts working again, you can then reactivate each plugin one by one to identify the culprit.

Also, a theme can be responsible. In that case, temporarily activate a default WordPress theme to check if the problem disappears.

Check server resources

A PHP memory limit that’s too low can also cause a critical error. Some shared hosts impose restrictions that become problematic when multiple plugins are used simultaneously.

It can therefore be useful to consult your hosting error logs or contact your provider to check available resources.

When to ask for help?

However, if the problem persists despite these checks, it’s better to get a professional diagnosis rather than make things worse. A targeted intervention often brings a site back online quickly while avoiding data loss.

In the end, a WordPress critical error isn’t necessarily a disaster. With a structured approach, it’s often possible to identify the cause and fix the problem effectively. If you need assistance or tools to manage your site, you can also consult my online store.