A WordPress critical error is the situation where “There has been a critical error on this website” appears instead of the site (the same message in English installations), usually because of a fatal PHP error in the background. Although alarming, posts and pages usually remain intact; WordPress catches the error and shows visitors this simple screen instead of raw code output. Once the source is found, the fix often comes down to changing a single plugin, theme, or server setting.
This article explains the message’s technical meaning, the recovery mode email sent to the administrator, common causes, and a step-by-step resolution sequence based on official WordPress documentation. Situations with and without dashboard access are covered separately, followed by when specialist help makes sense and the maintenance arrangements to prevent recurrence. Onur Freelance is not an official WordPress support channel; the explanations are based on wordpress.org documentation and our own maintenance process.
Let us take the first step together while your site is down
If the critical error message appears and dashboard access is unavailable, the current situation is examined in a free preliminary assessment before touching the site. First a backup is taken, then the source is investigated; intervention scope is clarified in the initial consultation.
What is a WordPress critical error? What does “There has been a critical error on this website” mean?
This message indicates that WordPress encountered a fatal PHP error while generating the page and caught it. Fatal error protection introduced in WordPress 5.2 shows visitors a general error screen instead of a blank page or code dump and notifies the administrator by email. The feature’s operation is explained in the core team’s WordPress 5.2 recovery mode announcement.
The WordPress critical error screen only says an error occurred, not what it was. The file and line causing the problem appear in the administrator email or error log. Some screens add a sentence asking the administrator to check their email for instructions.
Are the WordPress white screen and critical error message the same?
Their roots are the same, but their appearance differs. The WordPress White Screen of Death is a completely blank page caused by a PHP or database error; the official Common WordPress errors page covers these situations under related headings and recommends similar solutions. In versions before 5.2 or installations with error protection disabled, fatal errors usually appear as a white screen.
What is the recovery mode email, and where does it arrive?
The recovery mode email is the notification WordPress sends the site administrator when it catches a fatal error, including error details and a secret link for safe dashboard access. It goes to the administration email in Settings > General; if RECOVERY_MODE_EMAIL is defined with a valid address in wp-config.php, that address is used.
- Link validity: By default, the link is valid for one day; its expiry is stated in the email.
- Sending frequency: WordPress sends this email at most once per day by default. If the link has expired, a new one arrives when the error occurs again.
- Contents: The email identifies the plugin or theme where the error was caught and includes technical error details.
- If it does not arrive: Check junk (spam) first. If server email sending is not working correctly, the notification may never arrive; proceed through file access in that case.
Clicking the link opens the login screen, where the administrator signs in. Do not share the link because it acts as a key for entering the dashboard in recovery mode. If the administration address belongs to a former employee or a closed mailbox, the notification goes nowhere useful; keeping it current is a simple but important precaution.
What causes WordPress critical errors? The 6 most common reasons
A WordPress critical error usually results from a plugin or theme update conflicting with the server’s PHP version or another plugin. WordPress’s official error page lists plugin conflicts, theme incompatibility, incompatible PHP versions, memory limits, and corrupted files as possible causes.
- Plugin updates or new plugins: An updated plugin conflicting with another plugin or the theme is the most common cause.
- Theme or child theme changes: An incorrect code snippet added to the theme’s functions.php can shut down the site on its own.
- PHP version incompatibility: Upgrading PHP on the hosting side may break older plugins; conversely, a new plugin may not run on an old PHP version.
- Memory limit: When PHP has insufficient memory, the log shows “Allowed memory size exhausted”.
- Interrupted updates or corrupted files: A lost connection or full disk quota can interrupt an update.
- Malicious code: Modified files on hacked sites can also cause fatal errors.
The error often appears immediately after a change. The latest update, newly added plugin, or a hosting setting change is the strongest clue for starting diagnosis.
Page contents
Step 1: access the dashboard through the recovery mode link
If dashboard access is unavailable, the first and easiest route is the recovery mode link in the administrator email. In this mode, the faulty plugin or theme is paused only for the browser of the person using the link; visitors continue to see the error.
- Click the email link and sign in with the administrator account.
- Identify the faulty plugin or theme in the notice at the top of the dashboard; the relevant plugin is marked paused on the Plugins screen.
- Deactivate the faulty plugin; update it if a newer version exists, or find a compatible alternative otherwise.
- Close recovery mode using the exit button in the admin bar.
- Check the site in a logged-out incognito browser window.
Pausing applies only to the recovery mode session, not the whole site. Exiting without deactivating the plugin leaves the error in place for everyone. An incognito check is the easiest way to confirm the WordPress critical error screen is also gone for visitors.
Step 2: read the error log with WP_DEBUG_LOG
If the email did not arrive or the source is unclear, the error log is the most reliable source identifying the file and line responsible. WordPress’s debugging documentation recommends adding these lines to wp-config.php to enable logging:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
With these settings, errors are written to debug.log in wp-content instead of displayed on screen. Open the site again to trigger the error; the final lines show a record beginning “PHP Fatal error” and the path of the responsible file. A folder under wp-content/plugins points to that plugin; wp-content/themes points to the theme.
WordPress documentation recommends using debugging tools on local and staging installations rather than live sites. The Site Health screen also warns that errors are written to a potentially public file. Once the issue is identified, remove these lines or set them to false, and delete debug.log from the server.
Step 3: disable plugins through FTP if you cannot access the dashboard
Without a recovery link, plugins can be disabled together by renaming the plugins folder through FTP or the hosting file manager. WordPress cannot find plugins in the renamed folder, so it does not load them; official documentation recommends this when dashboard access is unavailable.
- Use an FTP client or hosting file manager to enter the site’s root directory, then open wp-content.
- Rename plugins to plugins_old.
- Refresh the site; if it opens, one of the plugins is responsible.
- Rename the folder back to plugins; plugins appear deactivated in the dashboard and can be activated one by one.
- Check the site after each activation; leave the plugin that brings the error back disabled.
If the error log already identifies the faulty plugin, rename just its folder rather than the entire plugins folder. This method does not delete plugin files and is reversible; settings for most plugins remain in the database and return upon reactivation.
Step 4: check the theme, PHP version, and memory limit
If the WordPress critical error remains with plugins disabled, the next suspects are the active theme, server PHP version, and memory allocated to WordPress. Evaluating these three checks alongside the error log message substantially narrows the problem.
Switching to a default theme
If dashboard access is available, switch to a default Twenty-series theme through Appearance > Themes; otherwise rename the active theme’s folder in wp-content/themes. If the site opens with a default theme, investigate the theme or code added to the child theme’s functions.php. Keeping at least one default theme installed makes this step easier.
PHP version
WordPress’s server requirements page recommends PHP 8.3 or higher; WordPress also runs on PHP 7.4 and above, but these older versions have reached end of official support. If the error began after the hosting company upgraded PHP, an old plugin or theme may be incompatible. The temporary solution is reverting through the hosting panel; the permanent solution is updating or replacing the incompatible component.
Memory limit
If the log contains “Allowed memory size exhausted”, PHP lacks sufficient memory. By default, WordPress tries to raise memory to 40 MB for single sites and 64 MB for multisite; according to the wp-config.php documentation, the limit can be raised with this line:
define( 'WP_MEMORY_LIMIT', '96M' );
Add the line in wp-config.php before wp-settings.php is called. Some hosts do not allow this increase; then the limit must be raised on the hosting side. If memory regularly runs out on shared hosting, review the package choice too; options appear on the hosting prices page.
Step 5: restore a backup if nothing works
If the source cannot be found or files are damaged, the safest way out of a WordPress critical error is restoring a clean backup from before the error. WordPress’s backup documentation emphasizes that both files and the database must be backed up for full restoration.
- Hosting backups: Choose a date from automatic backups in the hosting panel and restore files and the database together.
- Plugin backups: Copies sent to remote storage (cloud or a separate server) remain accessible even when server files are corrupted.
- Backup date: Restoring a backup made after the error began brings the problem back; choose the last clean copy from before the error.
- Loss of new content: Posts, orders, and form records added after the backup date may be lost when restoring.
For e-commerce sites, exporting recent orders before restoration is recommended. When core files are corrupted, reinstalling wp-admin and wp-includes from a clean WordPress package is also a method listed in the official error documentation.
Cannot read the log? Let us find the source together
If the error log cannot be opened, FTP details are unknown, or the existence of a current backup is uncertain, random attempts can worsen matters. The current situation is reviewed in a free preliminary assessment; first files and the database are backed up, then the source is investigated.
Common mistakes: random intervention or systematic diagnosis?
What prolongs a WordPress critical error is often rushed intervention before finding the source rather than the error itself. The table below compares common practices with systematic diagnosis:
| Topic | Common practice | Correct approach |
|---|---|---|
| Backup | Changing files without a backup | Back up files and the database first |
| Diagnosis | Deleting plugins one by one based on guesses | Find the file and line in the error log |
| Disabling a plugin | Permanently deleting it | Rename its folder and keep the change reversible |
| Debug mode | Leaving WP_DEBUG enabled on the live site | Disable it after diagnosis and delete debug.log |
| Updates | Updating everything on the live site at once | Test first in staging, in groups |
| PHP version | Changing it without compatibility checks | Check plugin and theme compatibility before switching |
Another common mistake is adding code directly to core or parent theme files. These changes disappear with the first update or cause a new conflict; keeping custom code in a child theme or separate plugin is healthier.
When should you consult a specialist for a WordPress critical error?
If dashboard and file access are unavailable, the log is unclear, or malicious code is suspected, specialist support reduces time and data loss risks. Independent intervention becomes risky in these situations:
- FTP, hosting panel, or backup credentials are unknown
- The error has stopped order and payment flows on an e-commerce site
- The log shows unfamiliar filenames, unreadable encoded snippets, or unexpected redirects
- The error remains after plugin, theme, PHP, and memory checks
- The problem is in a custom theme or plugin’s code
For hack-related errors, simply disabling a plugin is insufficient; if a backdoor remains, the problem soon returns. These situations fall within the hacked WordPress site recovery service. Our approach to other faults without signs of hacking is explained on the WordPress troubleshooting page.
Maintenance and staging to prevent recurrence
The two habits reducing recurrence risk most are backing up before updates and testing updates in staging first. WordPress’s backup documentation recommends regular database backups and one before every upgrade; it mentions weekly backups for small sites and daily backups for busy sites.
- A full pre-update backup of files and the database, with multiple copies in different locations
- Updates in groups rather than all at once, checking the frontend, forms, and payment step after each group
- Regular Site Health monitoring without postponing old PHP and pending update warnings
- Removal of unused plugins and themes
- A current, accessible administration email because recovery emails arrive there
A staging environment is a copy of the live site closed to visitors. The environment types feature introduced in WordPress 5.5 allows an installation to be marked “staging” through WP_ENVIRONMENT_TYPE and plugins to respond accordingly. Test updates on this copy first, then apply them live if no issues occur.
How does Onur Freelance’s WordPress maintenance process work?
At Onur Freelance, based in Maltepe since 2019, our WordPress maintenance order is backup first, testing second, live updates last. The same order applies to critical errors: copy the current state before touching the site, then investigate the source through the error log.
Annual WordPress maintenance and updates provides controlled core, plugin, and theme updates; afterward, key pages, contact forms, and the payment step, if present, are checked. Every action is recorded, making it possible to see which change preceded a problem. Maintenance costs 500–2,000 TL per month depending on site size and scope, clarified in the initial consultation.
We do not say every fault takes the same time to resolve; timing depends on the source and whether access details are ready. Other work such as setup, migration, and speed is listed on the WordPress services page.
Let us establish maintenance so critical errors are not a surprise
For those resolving the error independently, the steps above are based on official WordPress documentation. If the site is currently down or you are unsure where the process stands, get in touch by WhatsApp or phone for a free preliminary assessment. If regular maintenance is wanted to prevent recurrence, scope and monthly fees are clarified in the same conversation.
Related guides
- Hacked WordPress site recovery service
- How can you tell if a site has been hacked?
- WordPress virus scanning and removal
- If a WordPress site loads slowly
- How do you back up WordPress?
- Annual WordPress maintenance and updates
- Error establishing a database connection
- Website not opening: causes and solutions
- If a WordPress update broke the site
- If you cannot log in to the WordPress admin panel
- How do you resolve a 500 Internal Server Error?
- WordPress specialist in İstanbul
Frequently asked questions
What does a WordPress critical error mean?
It means WordPress encountered and caught a fatal PHP error while generating the page. Fatal error protection introduced in WordPress 5.2 shows visitors a general error screen and emails the administrator error details and a recovery link.
Does "There has been a critical error on this website" delete site data?
The message alone does not mean content was deleted; the error stops PHP code execution, while posts and pages remain in the database. Corrupted files or malicious code may require restoring a clean backup.
What should you do if the recovery mode email does not arrive?
First check the junk (spam) folder and the administration address in Settings > General. If the email still does not arrive, disable plugins by renaming the plugins folder through FTP or the hosting file manager.
How long is the recovery mode link valid?
By default, the link is valid for one day, and WordPress sends this email at most once per day. If the error occurs again after expiry, a new link is sent.
Are the WordPress white screen and critical error message the same?
They have the same roots; both usually involve PHP or database errors. With a white screen, the page is entirely blank; with a critical error message, WordPress catches the error and displays a simple error screen. The solutions are similar.
Does renaming the plugins folder delete settings?
No; renaming does not delete files, only prevents WordPress from loading plugins. Settings for most plugins remain in the database and return upon reactivation.
Can a critical error indicate hacking?
Yes; files modified with malicious code can cause fatal errors. If the log shows unfamiliar filenames, encoded snippets, or unexpected redirects, disabling a plugin is not enough; the site needs malicious code removed.
How much do critical error repair and WordPress maintenance cost?
The scope of a one-time fault intervention is clarified in a free preliminary assessment. Regular WordPress maintenance at Onur Freelance costs 500–2,000 TL per month depending on site scope. Onur Freelance is not an official WordPress support channel.
Call us
Call us for detailed information.
Let us call you!
Share your phone number and we will call you!
Our other services
- › Corporate web design
- › E-commerce website development
- › SEO optimization
- › WordPress website development
- › Google Ads management
- › WordPress speed optimization
Service areas
- › Web design in Sakarya
- › Web design in Tekirdağ
- › Web design in Bursa
- › Web design in Beşiktaş
- › Web design in Şişli
- › Web design in Tuzla
- › Web design in Ümraniye
- › Web design in Kadıköy
- › Web design in İstanbul
- › Web design in Ankara
- › Web design in Ataşehir
- › Web design in Üsküdar
- › Web design in Kartal
- › Web design in Maltepe
- › Web design in Pendik
- › Web design in Kocaeli
- › Web design in İzmir
- › Web design in Antalya
