How to fix “There Has Been a Critical Error on This Website” on WordPress

Written by Maya Bauer
July 10, 2023
there has been a critical error on this website on WordPress

Table of Contents


WordPress is a popular content management system (CMS) used by millions of websites worldwide. It provides a user-friendly interface and an abundance of plugins and themes that make website development and management easier. However, occasionally, WordPress users may encounter an error message stating, “There has been a critical error on this website” In this article, we will explore the causes of this error and provide solutions to troubleshoot and fix it effectively.


Understanding the Critical Error Message

When encountering the “There has been a critical error on this website” message, website owners and administrators often panic. This error message indicates that something has gone wrong with the website, rendering it inaccessible to visitors. However, it’s important to remain calm and take appropriate steps to identify and resolve the issue.

Showing the error "there has been a critical error on this website"

Causes of Critical Errors in WordPress

Plugin Compatibility Issues

One of the primary causes of critical errors in WordPress is plugin compatibility issues. Sometimes, when updating or installing a new plugin, conflicts may arise with other plugins or the WordPress core itself. These conflicts can lead to critical errors and website malfunction.

Theme Compatibility Issues

Similar to plugins, themes can also cause critical errors. If a theme is outdated, poorly coded, or incompatible with the current version of WordPress, it can trigger errors. Additionally, conflicts between different themes or between themes and plugins can result in critical errors.

Insufficient Memory Limit

WordPress relies on server resources to function properly. If the memory limit allocated to WordPress is too low, it can lead to critical errors. Insufficient memory can cause various issues, including the inability to execute certain processes, resulting in website errors.

Corrupted Files

Corrupted files within the WordPress installation can also trigger critical errors. These files may become corrupted due to various reasons, such as incomplete updates, malware infections, or server issues. When crucial files are corrupted, the website may become inaccessible, displaying the critical error message.


Troubleshooting Critical Errors

To resolve the “There has been a critical error on this website” error and bring your website back online, consider the following troubleshooting steps:

Disabling Plugins

Start by deactivating all plugins on your website. This can be done by accessing the WordPress admin dashboard and navigating to the “Plugins” section. Deactivate each plugin one by one and check if the critical error disappears. If it does, reactivate the plugins one at a time to identify the specific plugin causing the issue.

Disable all the plugins

Switching to a Default Theme

If disabling plugins doesn’t resolve the critical error, switch to a default WordPress theme, such as Twenty Twenty-Three. This step helps identify if the error is theme-related. If the critical error disappears after changing the theme, the issue lies with your previous theme, and you may need to contact the theme developer for assistance.

Switch to default theme

Increasing Memory Limit

If the critical error persists, it might be due to insufficient memory allocated to WordPress. To increase the memory limit, you can edit the wp-config.php file located in the root directory of your WordPress installation. Look for the following line of code:

define(‘WP_MEMORY_LIMIT’, ’64M’);

Change the value to a higher limit, such as ‘128M’ or ‘256M’. Save the file and check if the critical error has been resolved. If you feel uncomfortable dealing with the code, you can also ask your hosting company to raise the memory limit for you.

Replacing Corrupted Files

If none of the previous steps resolve the critical error, it’s possible that some files within your WordPress installation are corrupted. You can replace these files by performing a clean installation of WordPress. Before proceeding, make sure to back up your website’s files and database to avoid any data loss. Install a fresh copy of WordPress and upload your theme files and plugins again.
Please note that performing a clean installation of WordPress will result in a loss of your previous website’s content and settings. It’s essential to have a backup of your existing website before proceeding.
To perform a clean installation of WordPress, follow these steps:

1. Go to the official WordPress website ( and download the latest version of WordPress. This will be a file with a .zip extension.

2. Sign in to your web hosting account and navigate to the section related to databases or MySQL databases. Create a new database by following the instructions provided, and make note of the database name, username, and password associated with it.

3. Use the file manager or an FTP program provided by your hosting account to access your website’s files on the server. Backup your existing WordPress files to a separate location on your computer as a precautionary measure.

4. Once you have backed up your files, delete all the WordPress files on your server. This step is crucial to ensure a clean installation.

5. Upload the freshly downloaded WordPress files (from step 1) to your web server using the file manager or FTP program.

6. In a web browser, visit your website’s URL (e.g., You will be directed to the WordPress installation page.

7. Follow the on-screen instructions to set up your fresh WordPress installation. When prompted, provide the database name, username, and password that you created earlier during the database setup.

8. Complete the installation process by following the remaining instructions on the screen. You may be asked to provide a site title, username, and password for the WordPress admin area.

9. After the installation is complete, you can log in to the WordPress admin area by visiting and entering the username and password you set up earlier.

10. To restore the backup of your previous WordPress website, use the backup files to restore your website’s content and settings. This can be done by following the restoration instructions provided by your backup solution or plugin.


Prevention Tips

Preventing critical errors is crucial to maintaining a stable and functional WordPress website. Here are some tips to help you avoid encountering this issue in the future:

  • Regularly Update WordPress, Plugins, and Themes: Keeping your WordPress installation, plugins, and themes up to date ensures compatibility and reduces the risk of critical errors caused by outdated software.
  • Use Reliable and Compatible Themes and Plugins: Before installing a theme or plugin, research its reputation and compatibility with your current WordPress version. Choose well-established options from trusted sources.
  • Perform Regular Backups: Regularly backing up your website’s files and database is essential. In case of any critical error or website malfunction, you can easily restore your website to a previous working state.


Encountering “There has been a critical error on this website” on your WordPress can be alarming, but with the right troubleshooting steps, you can quickly resolve the issue. By understanding the causes of critical errors and following the recommended solutions, you can restore your website’s functionality and ensure a smooth user experience.



1. How can I determine which plugin is causing the critical error?
To identify the plugin causing the critical error, deactivate all plugins and reactivate them one by one, checking for the error after each activation. This process will help pinpoint the specific plugin causing the issue.

2. Can a critical error affect my website’s SEO rankings?
While a temporary critical error may not directly impact your website’s SEO rankings, prolonged periods of website inaccessibility can negatively affect your rankings. It’s crucial to resolve critical errors promptly to maintain a positive user experience and search engine visibility.

3. Should I edit WordPress core files to fix a critical error?
No, it’s generally not recommended to edit WordPress core files. Modifying core files can lead to compatibility issues and potential security vulnerabilities. It’s best to follow the recommended troubleshooting steps or seek assistance from a professional.

4. Can a critical error result in data loss?
In most cases, critical errors do not directly cause data loss. However, it’s always recommended to back up your website regularly to ensure you have a recent copy of your data in case of any unforeseen issues.

5. Is it necessary to contact a developer to fix a critical error?
While you can try troubleshooting critical errors on your own, it may be beneficial to seek assistance from a WordPress expert, especially if you’re not familiar with the technical aspects. A developer can provide expert guidance and quickly resolve complex issues.

More Posts

Maya Bauer

Expert UI designer, Writer, and Co-owner of Envision Web Creation. Passionate about helping others learn how to improve and optimize their business presence online.

Share this article

Leave a Comment

Your email address will not be published. Required fields are marked *