The “There has been a critical error on this website” error appears when WordPress encounters a fatal PHP error that prevents your site from loading. This error typically stems from plugin conflicts, theme issues, corrupted files, or memory limit problems that crash your website’s core functionality.
What Causes the WordPress Critical Error?
Plugin conflicts trigger most critical errors on WordPress sites. When two plugins use incompatible code or try to execute the same function, your website crashes. Outdated plugins also cause this error because they contain code that doesn’t work with newer WordPress versions.
Theme problems create critical errors when template files contain syntax mistakes or missing required functions. Switching themes without proper deactivation or using poorly coded themes increases your chances of seeing this error.
PHP memory exhaustion stops WordPress from completing essential tasks. Your hosting environment allocates a specific memory limit, and when processes exceed this threshold, the system generates a critical error. According to WordPress’s official hosting requirements (January 2025), sites need at minimum 256MB of PHP memory for optimal performance.
Corrupted core files from failed updates or malware infections also trigger this error. The WordPress installation becomes unstable when critical system files get damaged.
How Can I Access My Site When It Shows a Critical Error?
File Transfer Protocol (FTP) provides backend access when your WordPress dashboard won’t load. Download FileZilla or use your hosting provider’s built-in FTP client to connect to your server. You’ll need your FTP credentials from your hosting account.
phpMyAdmin gives you direct database access through your hosting control panel. Navigate to the databases section in cPanel or your hosting dashboard to launch phpMyAdmin. This tool lets you modify database tables without accessing the WordPress frontend.
SSH access offers command-line control for advanced users. Contact your hosting provider to enable SSH if it’s not already active. You can execute powerful commands to troubleshoot errors faster than through FTP.
Your hosting control panel contains file managers and database tools that work even when WordPress is broken. Log into your hosting account and use these built-in tools to make necessary changes.
What Steps Fix Plugin-Related Critical Errors?
Rename your plugins folder to deactivate all plugins simultaneously. Connect via FTP and navigate to /wp-content/. Change the plugins folder to plugins_old or plugins_disabled. Refresh your website to see if the error disappears.
If your site loads after renaming the plugins folder, the issue comes from a specific plugin. Restore the original folder name, then rename each plugin subfolder individually to identify the problematic one.
Delete the broken plugin completely once you identify it. Remove its folder from /wp-content/plugins/ and find an alternative solution or contact the plugin developer for support.
Check for plugin updates before reinstalling. Developers often release patches that fix compatibility issues causing critical errors.
Plugin Troubleshooting Checklist:
- Disable all plugins through FTP folder renaming
- Test site functionality after each change
- Reactivate plugins one at a time
- Monitor error logs for specific conflict messages
- Remove incompatible plugins permanently
- Update remaining plugins to latest versions
How Do I Resolve Theme-Related Critical Errors?
Switch to a default WordPress theme through FTP or database access. Navigate to /wp-content/themes/ via FTP and rename your active theme folder. WordPress automatically switches to a default theme like Twenty Twenty-Five.
Modify the database directly if FTP doesn’t solve the issue. Access phpMyAdmin, select your WordPress database, and find the wp_options table. Search for template and stylesheet rows, then change their values to twentytwentyfive or another default theme name.
Reinstall your theme after backing up customizations. Download a fresh copy from the theme developer and upload it via FTP, replacing corrupted files while preserving your child theme if you use one.
Theme updates sometimes introduce breaking changes. Review the theme changelog and test updates on a staging site before applying them to your live website.
What Memory Limit Adjustments Fix This Error?
Edit your wp-config.php file to increase PHP memory limits. Add this line before “That’s all, stop editing!”: define(‘WP_MEMORY_LIMIT’, ‘256M’); This change allocates more memory for WordPress operations.
Modify .htaccess file if wp-config.php changes don’t work. Add php_value memory_limit 256M to the file located in your WordPress root directory. Some servers require this method instead.
Update php.ini file for server-wide memory increases. Create or edit the file in your WordPress root and add memory_limit = 256M. Not all hosting environments allow this modification.
Contact your hosting provider when file edits don’t increase memory. Shared hosting plans often impose strict limits that require account upgrades or server migrations.
| Method | File Location | Code to Add | Access Level |
| wp-config.php | WordPress root | define(‘WP_MEMORY_LIMIT’, ‘256M’); | All users |
| .htaccess | WordPress root | php_value memory_limit 256M | Most shared hosting |
| php.ini | WordPress root or server | memory_limit = 256M | VPS/dedicated servers |
How Do I Enable WordPress Debug Mode to Find Errors?
Activate debug mode by editing wp-config.php. Add these lines before “That’s all, stop editing!”:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);This configuration writes errors to /wp-content/debug.log without showing them to site visitors. Check this log file via FTP to see specific error messages identifying the problem.
Debug logs reveal exact file paths and line numbers causing errors. Look for messages mentioning specific plugins, themes, or PHP functions that fail.
Disable debug mode after fixing the issue. Change WP_DEBUG to false and remove the debug log file to prevent sensitive information exposure.
Can Corrupted Files Cause Critical Errors?
WordPress core file corruption happens during failed updates or server crashes. Download a fresh WordPress copy from WordPress.org and upload only the wp-admin and wp-includes folders via FTP. Never replace wp-content as it contains your themes, plugins, and uploads.
Verify file integrity by comparing checksums against official WordPress releases. Use WP-CLI command wp core verify-checksums if you have SSH access.
Database corruption requires repair mode activation. Add define(‘WP_ALLOW_REPAIR’, true); to wp-config.php, then visit yoursite.com/wp-admin/maint/repair.php. Remove this line after repairs complete.
Malware infections corrupt files while inserting malicious code. Run security scans using Wordfence or Sucuri to detect and remove infected files.
What Role Does Web Hosting Play in Critical Errors?
Server configuration mismatches cause errors when your hosting environment doesn’t meet WordPress requirements. PHP version incompatibility ranks as the primary hosting-related cause. Your server needs PHP 7.4 or higher for modern WordPress installations.
Resource limitations on shared hosting trigger errors during traffic spikes. Your site shares server resources with hundreds of other websites, and when resource allocation fails, critical errors appear.
Poorly configured server software creates conflicts with WordPress operations. Apache modules, PHP extensions, and database settings need proper configuration to support WordPress functionality.
Upgrading your hosting plan or switching providers often resolves persistent errors. Managed WordPress hosting services optimize server configurations specifically for WordPress, reducing critical error occurrences.
How Do I Prevent Future Critical Errors?
Maintain regular backups before making any changes to your website. Use automated backup solutions for WordPress to create restore points. Schedule daily backups for active sites and weekly backups for static content.
Test updates on staging environments before applying them to live sites. Create a duplicate of your website where you can safely test plugin updates, theme changes, and WordPress core updates.
Monitor your error logs weekly to catch issues before they cause critical failures. Set up automated alerts that notify you when errors appear in debug logs.
Choose reputable plugins and themes from developers with strong support records. Check recent update history, user reviews, and compatibility information before installing new components.
Prevention Best Practices:
- Keep WordPress core updated within 48 hours of releases
- Update plugins and themes monthly
- Remove unused plugins and themes completely
- Use security plugins to monitor file changes
- Maintain staging environment for testing
- Document all site modifications
When Should I Contact Professional Help?
Persistent errors after trying standard fixes indicate deeper problems requiring expert diagnosis. If you’ve attempted plugin deactivation, theme switching, and memory increases without success, professional assistance saves time.
Database corruption beyond basic repair tools needs specialized recovery. WordPress developers use advanced database repair techniques when standard WordPress repair mode fails.
Server-level issues outside WordPress control require hosting support or server administrators. Problems with PHP configuration, Apache modules, or MySQL settings need technical expertise.
Security breaches causing critical errors need immediate professional intervention. Malware removal and security hardening prevent future attacks and data loss.
| Situation | Who to Contact | Expected Resolution Time |
| Plugin/theme conflicts | WordPress developer | 1-4 hours |
| Server configuration | Hosting support | 2-24 hours |
| Database corruption | Database specialist | 4-8 hours |
| Security breach | Security professional | Immediate to 48 hours |
Fixing Your WordPress Critical Error
The critical error on WordPress sites stems from identifiable causes that you can resolve through systematic troubleshooting. Start with plugin deactivation, proceed to theme switching, and adjust memory limits while monitoring debug logs. Most errors resolve within these standard fixes, but persistent problems warrant professional assistance or hosting upgrades.
Access your site through FTP or phpMyAdmin to implement fixes when your dashboard won’t load. Document each change you make and test your site after each modification. Prevention through regular backups, staged updates, and quality component selection keeps your WordPress site stable and functional.
FAQs About the “Critical Error” Notice
What are some common causes of the “critical error on website” message?
Some common triggers for the “critical error” message include misconfigured PHP settings, PHP syntax errors, corrupted theme/plugin files, exceeded resource limits, database connection issues, file permission problems, DNS errors, and faulty .htaccess files.
Why am I suddenly getting the critical error when the site was working fine before?
If a previously working site starts showing this error, a potential cause is a recent change like a plugin/theme update containing bugs, new custom code with errors, or tweaked server settings. Restoring a backup or undoing recent changes may fix it.
Are “critical error” messages always related to PHP errors?
While PHP errors are the most common culprits, occasionally, database server failures, DNS issues, malware infections, or problems with the hosting infrastructure can also trigger this generic critical error notice.
My site is showing a blank white page rather than an error message. Could this be the same issue?
Yes, a blank white screen is a common indicator of PHP errors. So, the same troubleshooting for a “critical error” message applies to blank pages where you expect site content.
How can I prevent these “critical error” messages in the future after fixing the issue?
Some best practices include keeping plugins/themes updated, testing code changes on a staging environment first, limiting the use of custom code, monitoring site error logs, and enabling automatic backups in case a problem arises.
I keep getting 404 errors when trying to access my WordPress admin dashboard. Is this related?
Yes, 404 errors when trying to access the WordPress admin section of your site are commonly caused by the same PHP execution problems that can lead to “critical error” messages site-wide.
My web host said the issue is related to using too many resources. What does this mean?
It means your site’s scripts are exceeding the resource limits for things like max execution time, memory usage, or number of database connections allowed, which causes PHP failures. Upgrading your hosting plan may help.
I can’t access the site at all to try any troubleshooting. What should I do?
Contact your web host immediately for help troubleshooting and restoring access if the site is down completely. They can best investigate issues on the server side as a starting point.
How can I find a good web developer to troubleshoot “critical error” problems?
Web developers familiar with PHP, WordPress, common CMS systems, and debugging errors can help with complex issues. Check reviews, references, and testimonials carefully when selecting one.
Priya Mervana
Verified Web Security Experts
Priya Mervana is working at SSLInsights.com as a web security expert with over 10 years of experience writing about encryption, SSL certificates, and online privacy. She aims to make complex security topics easily understandable for everyday internet users.



