Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

How to diagnose and fix a WordPress Critical Error - SIRSTEVEHQ CP

How to diagnose and fix a WordPress Critical Error

In recent versions of WordPress, the following critical error message may appear when there is an underlying problem with your WordPress website.

medium_image_57a70e1c45.png

The first step when seeing this critical error is to diagnose the problem. WordPress has a debug mode built in that can be enabled and this should provide additional information on the root cause of the critical error.

Enabling WordPress Debug Mode

  1. Navigate to the hosting package's file manager, or connect to your package via SSH or FTP.
  2. Edit the wp-config.php file, located within the document root of your WordPress installation.
  3. Locate the following line, and change the 'false' string to 'true':
define('WP_DEBUG', false);

Loading the WordPress site now should display the cause of the critical error. In this example, a single syntax error within an active plugin.

large_image_228716b598.png

In this example, correcting the syntax error within bbpress.php would fix the issue. Reinstalling the WordPress plugin, or contacting the plugin author would be the advised next steps forward.

It's important to remember to disable WordPress debug mode once finished, which can be done by setting the string from 'true' to 'false'.

Common Causes

There are a few common culprits when it comes to WordPress Critical Errors.

  1. WordPress plugins - disabling plugins is a great first step when diagnosing a WordPress site.
  2. WordPress themes - often custom themes may have dependencies, or cause conflicts. Reverting the theme back to a WordPress default may help clear up the issue.
  3. Missing core files - missing files may result in fatal errors, and so running checksums or reinstalling WordPress core files would be recommended.
  4. PHP errors - PHP errors may result in circumstances where the WordPress site is exceeding the memory limit. Checking your PHP Configuration and making the necessary amendments to the threshold may be required. Note, that the memory_limit cannot be in excess of 2048M on the Shared Hosting platform, though we recommend setting this to a maximum of 1024M.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I migrate a website manually? - SIRSTEVEHQ CP

SIRSTEVEHQ CP provide an automatic 'one click' Migration Centre that supports migrations from the...

Is it safe to update the PHP version on my website? - SIRSTEVEHQ CP

Updating your PHP version on a website can be a critical decision that can affect the...

How do I run a search and replace in the WordPress CLI? - SIRSTEVEHQ CP

The WordPress Command Line Interface (CLI) search and replace function is a useful tool when you...

Why could my WordPress migration fail? - SIRSTEVEHQ CP

The following conditions should be met for the WordPress FTP migration tool to migrate a site....

WordPress caching: what you need to know - SIRSTEVEHQ CP

Optimising your WordPress site for performance can be done in a variety of ways, but few are as...