Understanding What Causes the WordPress Critical Error
Seeing the error message "There has been a critical error on this website" (formerly known as the White Screen of Death) can be alarming. This warning occurs when PHP code execution halts due to a fatal script error, preventing your page from loading.
The most common causes of this breakdown include:
- Incompatible plugins or themes: Conflicts between updated plugins or outdated code.
- Corrupted core files: Files damaged during an interrupted update.
- PHP memory exhaustion: A script exceeding the maximum allocated memory limit.
- PHP version mismatches: Hosting server running a PHP version incompatible with installed scripts.
Step 1: Enable WP_DEBUG to Identify the Problem
Instead of guessing which plugin or file failed, turn on built-in WordPress debugging to expose the exact PHP error and file path.
- Log in to your web hosting cPanel or access your server using an FTP client like FileZilla.
- Navigate to the public_html directory and open the wp-config.php file.
- Locate the line that reads
define('WP_DEBUG', false);and change it to true. - Add
define('WP_DEBUG_LOG', true);directly below it to save errors to a log file.
Refresh your site. You will now see detailed error messages identifying the specific plugin, theme, or file line causing the crash. If managing server code feels overwhelming, our WordPress maintenance team can diagnose and resolve these execution failures for you.
Step 2: Deactivate Plugins via FTP or File Manager
If a faulty plugin triggered the failure and locked you out of the wp-admin dashboard, you can bypass the admin area entirely to disable all plugins.
Connect via FTP or File Manager and navigate to /wp-content/. Rename the plugins folder to plugins_old. This action instantly deactivates all active plugins without deleting their data. Try re-accessing your WordPress dashboard. If successful, rename the folder back to plugins and reactivate plugins one by one to locate the culprit.
Step 3: Revert to a Default Theme and Check PHP Limits
If plugins are not the issue, an active theme might contain incompatible code. Access /wp-content/themes/, locate your active theme directory, and temporarily rename it. WordPress will automatically revert to a standard default theme such as Twenty Twenty-Four if installed.
Additionally, memory starvation frequently triggers fatal errors during heavy processing. Open your wp-config.php file and add the following line to expand your memory allocation:
define('WP_MEMORY_LIMIT', '256M');
Step 4: Restore from Backup or Apply Emergency Care
If debugging points to corrupted core files or database issues, the fastest way to minimize business downtime is restoring your latest automated site backup. Choose a full system backup taken right before the error occurred.
To stop emergency downtime from affecting your sales and customer trust, explore our proactive managed retainer services. At Glory Software Technologies, we provide automated backups, real-time uptime monitoring, and instant repair services for small businesses across India, the UK, and the USA.