Encountering the message “There has been a critical error on your website” can be frustrating. This error usually indicates that something on your WordPress site has stopped working correctly. It might be caused by a plugin, theme, or server issue.
If you are using Windows 11 to manage your WordPress site, this guide will help you fix the problem step by step. No advanced technical knowledge is needed.
We will walk through simple solutions first, then move on to more detailed troubleshooting if needed. By following these instructions carefully, you can get your website back online quickly.
Let’s get started with some quick notes before we dive into the solutions.
Quick Note: Prerequisites and Initial Checks
- Backup Your Website: Before making any changes, create a full backup of your website files and database. This ensures you can restore your site if something goes wrong.
- Access to Hosting Control Panel: You will need access to your web hosting control panel or FTP to fix some issues.
- Check Error Message Details: Sometimes WordPress shows a “Learn More” link or sends an email with more information about the error. Check these for clues.
- Windows 11 Does Not Directly Affect WordPress: Remember, Windows 11 is your operating system and does not control your website’s server. Most fixes involve your hosting environment or WordPress files.
Step 1: Enable WordPress Debug Mode to Identify the Error
WordPress has a built-in debugging feature that helps reveal what is causing the critical error. By enabling debug mode, you get detailed error messages instead of a generic error screen.
- Log in to your hosting control panel or use an FTP client to access your website files.
- Find the
wp-config.phpfile in the root folder of your WordPress installation. - Download a copy of this file to your computer as a backup.
- Edit the
wp-config.phpfile using a plain text editor like Notepad. - Look for the line that says
define('WP_DEBUG', false); - Change it to
define('WP_DEBUG', true); - Save the file and upload it back to the server, replacing the old one.
- Reload your website. You should now see more detailed error messages that indicate what is causing the problem.
Why this step matters: Seeing the exact error helps you or your developer quickly identify and fix the root cause.
Step 2: Deactivate All Plugins
Plugins are often responsible for critical errors, especially if they are outdated or incompatible.
- Access your website files via FTP or hosting file manager.
- Navigate to the
wp-contentfolder. - Rename the folder named
pluginsto something likeplugins-deactivated. - Check your website again. If it loads without error, the problem is with one or more plugins.
- Rename the folder back to
plugins. - Log in to your WordPress admin dashboard and reactivate plugins one by one to find the faulty plugin.
Why this matters: This method quickly isolates plugin-related problems without deleting any files.
Step 3: Switch to a Default WordPress Theme
If plugins are not the issue, your theme might be causing the error.
- Again, use FTP or your hosting file manager.
- Go to
wp-content/themes. - Rename your active theme’s folder by adding
-oldto the folder name. - This forces WordPress to fall back to a default theme like Twenty Twenty-One or Twenty Twenty-Two.
- Reload your website to see if it works.
If the site loads, your theme is the cause. Consider updating or replacing it.
Step 4: Increase PHP Memory Limit
Sometimes, the critical error happens because your site runs out of memory.
- Open the
wp-config.phpfile again. - Add this line just above the line that says
/* That's all, stop editing! Happy blogging. */:
define('WP_MEMORY_LIMIT', '256M');
This increases the memory limit to 256 megabytes.
Save and upload the file, then refresh your website.
Step 5: Check for Corrupted Core Files
Sometimes WordPress core files may become corrupted or altered, causing errors.
- Download a fresh copy of WordPress from wordpress.org.
- Extract the downloaded file on your computer.
- Using FTP, upload the
wp-adminandwp-includesfolders from the fresh copy to your website, overwriting the existing folders. - Do not overwrite the
wp-contentfolder or thewp-config.phpfile. - Check your website again.
Alternative Method: Use Recovery Mode
WordPress has a built-in recovery mode that sometimes activates after a critical error.
If you received an email from WordPress about the error, it contains a special login link to recovery mode. Use it to log in and deactivate faulty plugins or themes directly from the dashboard.
FAQs
What causes the “There has been a critical error on your website” message?
This error usually occurs because of PHP errors caused by incompatible or outdated plugins, themes, corrupted files, or exhausted server resources.
Can I fix this error without technical knowledge?
Yes, by following the step-by-step instructions here, even beginners can resolve common causes. However, some steps require access to hosting or FTP.
Will enabling debug mode expose my website to visitors?
Debug mode shows detailed error information that can reveal sensitive data. Only enable it temporarily and disable it once you finish troubleshooting.
How do I back up my WordPress site on Windows 11?
You can use plugins like UpdraftPlus or manually download your website files via FTP and export your database using phpMyAdmin.
What if the error persists after following all steps?
It might be a server-level issue or a complex conflict. Contact your hosting support or a professional developer for help.
When Nothing Works
If you have tried every step and the error remains, consider these final options:
- Contact your web hosting provider’s support team for assistance. They can check server logs and help resolve hosting-related problems.
- Restore your website from a recent backup if available.
- Seek help from the official WordPress support forums at https://wordpress.org/support/.
- Hire a professional WordPress developer to troubleshoot and fix the issue.
Conclusion
The “There has been a critical error on your website” message can feel overwhelming, but it usually has a straightforward cause. By enabling debug mode, deactivating plugins, switching themes, increasing memory, and checking core files, you can resolve most issues quickly.
Always remember to back up your website before making changes and proceed step-by-step. If advanced troubleshooting is needed, don’t hesitate to seek professional help.
Following this guide carefully will help you restore your WordPress site on Windows 11 and get back to managing your content with confidence.