Restore Your WordPress Site After a Crash
WordPress Site Recovery: Fix Any Crash 2025
Why WordPress Site Recovery is Critical for Your Business
WordPress site recovery is the process of restoring your website after it crashes, gets hacked, or becomes inaccessible. That sinking feeling when your site displays a “Critical Error” or the White Screen of Death is a serious business risk. One moment your site is running smoothly, and the next, your customers can’t reach you.
With WordPress powering over 43% of the web and offering 60,000+ plugins, conflicts and crashes are common. The good news? Most issues are completely recoverable. Here are the essential steps every site owner needs to know:
Quick WordPress Recovery Steps:
- Stay calm – Most issues are fixable.
- Enable WordPress Recovery Mode – Check your admin email for the recovery link.
- Access your files via FTP or cPanel if locked out.
- Restore from backup using your backup plugin or hosting provider.
- Replace corrupted files with fresh WordPress core files.
- Clean malware and change all passwords if hacked.
This guide will walk you through everything you need to restore your WordPress site. I’m Kevin Gallagher, and through my company wpONcall, I’ve been helping businesses with WordPress site recovery for over fifteen years. I’ve seen every scenario and developed proven methods to get sites back online quickly and securely.
Simple guide to wordpress site recovery terms:
First Steps: Diagnose the Problem Before You Panic
When your site breaks, rushing into random solutions can make things worse. Successful WordPress site recovery starts with diagnosis. Your site often hides error messages to maintain a professional look, but we need to uncover these clues to understand what’s wrong.
The most powerful diagnostic tool is WP_DEBUG. To enable it, you need to edit your wp-config.php file, which is in your site’s root directory. You can access it via FTP or your host’s cPanel File Manager. Add these three lines just before /* That's all, stop editing! Happy publishing. */:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
This code tells WordPress to log all errors to a file named debug.log inside your /wp-content/ folder, without displaying them to visitors. After saving, reload your site and then check this log file. The messages inside will often point directly to the problematic plugin or theme. For more details, see our guide on How Do I Enable Error Logging in WordPress?.
Also, check your server’s error logs via your hosting control panel, as they can reveal server-level issues. Your hosting provider’s support team is a valuable first point of contact; they can spot problems you can’t see and may have recent backups.
What is WordPress Recovery Mode and How Do I Use It?
If you’re using WordPress 5.2 or newer, you have a built-in safety net called Recovery Mode. When a fatal error occurs, WordPress automatically sends an email to your admin address with a special recovery link. Clicking this link grants you access to a safe version of your dashboard, with the problematic plugin or theme temporarily disabled.
WordPress will highlight the component that caused the crash, allowing you to deactivate or update it. If you don’t receive the email, check your spam folder. You can also try to manually trigger recovery mode by visiting yoursite.com/wp-login.php?action=entered_recovery_mode. For more advanced troubleshooting, the free Health Check & Troubleshooting plugin is an excellent tool.
What to Do When You See a Critical Error
The “Critical Error” message is the modern version of the White Screen of Death. It looks scary, but it’s a common and fixable issue. The most frequent causes are:
- Plugin or Theme Incompatibility: Often occurs after an update when new code conflicts with existing components.
- PHP Memory Limit Exhaustion: Your site runs out of server memory, usually due to resource-heavy plugins or a restrictive hosting plan.
- Corrupted Files: Files can get damaged during uploads or updates.
- Database Connection Issues: WordPress cannot connect to its database to retrieve content and settings.
To fix a critical error, follow a systematic approach. If Recovery Mode doesn’t work, use FTP to rename the wp-content/plugins folder to deactivate all plugins. If the site works, a plugin is the culprit; reactivate them one by one to find it. If not, try renaming your active theme’s folder in wp-content/themes to force WordPress to use a default theme. You can find more detailed solutions in our guide to Fix WordPress Critical Error.
Gaining Access When You’re Locked Out of WordPress
When a crash locks you out of your WordPress admin dashboard, you’ll need direct access to your site’s files and database for WordPress site recovery. Your primary tools for this are an FTP/SFTP client (like FileZilla), your hosting provider’s cPanel, and phpMyAdmin.
If you’re completely locked out and suspect a server-level issue, contact your hosting provider first. They can check for server problems and often restore your site from their own backups. For a proactive approach that minimizes lockouts, consider our Managed WordPress Hosting services, where we handle these issues for you.
How to Access Your Site’s Files with FTP or cPanel
FTP (File Transfer Protocol) and its secure version, SFTP, let you connect directly to your web server to manage files. Using an FTP client like FileZilla and credentials from your host, you can steer to your WordPress directory (often public_html). Here you can perform critical recovery tasks like renaming plugin/theme folders to deactivate them or uploading fresh WordPress core files.
Most hosts also provide a cPanel File Manager, a web-based tool that lets you manage files from your browser. It’s a great alternative to FTP and is often faster for deleting multiple files.
How to Access Your Database with phpMyAdmin
Your WordPress database stores all your content, users, and settings. phpMyAdmin, typically found in cPanel, is a tool for managing this database. After selecting your site’s database (the name is in your wp-config.php file), you can perform essential recovery tasks:
- Fix Site URLs: In the
wp_optionstable, incorrectsiteurlandhomevalues can break your site. Ensure they match your domain name. - Manage Users: In the
wp_userstable, you can reset passwords or delete malicious user accounts created during a hack. - Repair the Database: WordPress has a built-in repair tool. Add
define('WP_ALLOW_REPAIR', true);to yourwp-config.phpfile, then visityourdomain.com/wp-admin/maint/repair.php. This can fix many common database corruption issues. Remember to remove the line fromwp-config.phpafterward for security.
For ongoing database health, explore services like WordPress Optimize Database.
The Complete WordPress Site Recovery Toolkit
Your WordPress site recovery toolkit begins with backups. A reliable backup system is the difference between a minor inconvenience and a business disaster. At wpOncall, our WordPress Backup and Security approach is built on the principle that prevention is better than panic.
For active business sites, we recommend daily backups. It’s also wise to understand backup types: full backups copy everything, partial backups save only specific parts (like the database), and incremental backups smartly save only what’s changed. The golden rule is to store backups in multiple locations (e.g., on the server and in separate cloud storage).
How to Restore a WordPress Site From a Backup
Knowing how to restore a backup is as important as having one. The best method depends on how the backup was created:
- Plugin Restoration: Most backup plugins have a user-friendly restoration feature in the WordPress dashboard. Some offer standalone scripts that work even when your site is down.
- Hosting Provider Restoration: Many hosts keep their own backups. You can typically restore one with a few clicks in your hosting control panel or by contacting support.
- Manual Restoration: This involves uploading files via FTP and importing the database via phpMyAdmin. It’s more technical but gives you full control.
For businesses that need guaranteed, fast recovery, our WordPress Backup and Restoration Services provide expert handling without the stress.
Manual WordPress Site Recovery: A Step-by-Step Guide
Manual recovery provides a reliable fallback when automated tools fail. Here is the process:
- Replace Core Files: Download the latest version from WordPress.org. Via FTP, upload and overwrite all files and folders except for the
wp-contentfolder and thewp-config.phpfile. - Restore the Database: In phpMyAdmin, select your database, go to the “Import” tab, and upload your SQL backup file. This will overwrite the existing database.
- Restore Your Content: Upload your backup of the
wp-contentfolder via FTP to restore your themes, plugins, and media uploads. - Verify
wp-config.php: Ensure the database name, user, and password in this file are correct for your hosting environment. - Check Site URLs: In the
wp_optionstable in phpMyAdmin, confirm thesiteurlandhomevalues match your domain.
Fixing Plugin and Theme Conflicts
Plugin and theme conflicts are a top cause of site crashes. If you’re locked out of your admin area, the fastest way to diagnose this is via FTP. Steer to your wp-content directory and rename the plugins folder to plugins-disabled. If this fixes your site, a plugin was the issue. Rename the folder back and reactivate plugins one by one in your dashboard to find the culprit.
If plugins aren’t the problem, try renaming your active theme’s folder. This forces WordPress to switch to a default theme, telling you if your theme was the source of the conflict.
Advanced Recovery: Cleaning a Hacked Site and Recovering Lost Data
Finding your site has been hacked is a stressful experience. You might see spam links, malicious redirects, or find that Google has blacklisted your site. While devastating, most hacked WordPress sites can be successfully cleaned and restored.
Over my fifteen years in WordPress site recovery, I’ve learned that a methodical cleanup process is key. The most critical asset for recovery is a clean backup taken before the hack occurred. Without one, the process is much more difficult.
For expert help with this overwhelming task, our WordPress Malware Removal service can get your site clean and secure quickly.
How to Clean a Hacked WordPress Site
Cleaning a hacked site requires a systematic approach. Do not rush these steps:
- Isolate the Site: Put your site into maintenance mode to prevent further damage and protect visitors.
- Change All Passwords: Immediately reset passwords for your WordPress admin, hosting/cPanel account, FTP, and database. Assume all are compromised.
- Scan Everything: Use a reputable security plugin and online scanners to identify malicious files and backdoors.
- Replace Core Files: Delete your
wp-adminandwp-includesfolders and replace them with fresh copies from a new WordPress.org download. - Replace Themes and Plugins: Delete all of your themes and plugins. Reinstall fresh, clean copies from the official WordPress repository or trusted developers.
- Inspect Critical Files: Manually check your
.htaccessandwp-config.phpfiles for suspicious code, redirects, or incorrect database details. - Clean the
uploadsFolder: Scan yourwp-content/uploadsdirectory for any non-image files (like .php files) that hackers may have hidden there. - Clean the Database: Use phpMyAdmin to search your
wp_postsandwp_optionstables for spam links, malicious content, and suspicious entries. - Remove Unauthorized Users: Check your WordPress user list and the
wp_userstable in your database for any unfamiliar admin accounts and delete them. - Find the Vulnerability: The hack will repeat if you don’t find and fix the entry point, whether it was an outdated plugin or a weak password. Our WordPress Security Audit Service can help identify these gaps.
How to Recover Deleted WordPress Content
If you’ve accidentally lost content, there are several ways to get it back:
- Check the Trash: WordPress moves deleted posts and pages to a “Trash” folder. Check there first before they are permanently deleted.
- Use a Database Backup: If you have a database backup, you can use phpMyAdmin to restore specific tables like
wp_poststo recover content without a full site restore. - Use the Wayback Machine: As a last resort for text content, the Wayback Machine at archive.org may have a snapshot of your site. You can’t restore the site itself, but you can copy and paste the lost text.
Frequently Asked Questions about WordPress Site Recovery
During a site crash, questions and concerns are natural. Here are answers to the most common questions I’ve heard over fifteen years of WordPress site recovery.
How can I recover my site if I’ve lost my admin password and can’t receive the reset email?
If the password reset email isn’t working, you can reset your password directly in the database using phpMyAdmin.
- Access phpMyAdmin via your hosting control panel.
- Select your WordPress database and open the
wp_userstable. - Find your admin username and click “Edit.”
- In the
user_passfield, delete the existing value and type your new password. - In the “Function” dropdown menu next to it, select MD5 to encrypt the password.
- Click “Go” to save. You can now log in with your new password.
Alternatively, you can edit the user_email field in the same table to an address you can access, then use the standard “Lost your password?” link on your login page.
Will restoring a backup cause me to lose recent WooCommerce orders or form entries?
Yes, in most cases. A full backup restoration reverts your entire site—including the database—to the state it was in when the backup was created. This means any orders, form submissions, comments, or new content created after that point will be lost.
This is why frequent (ideally daily) backups are critical for e-commerce and active business sites. Before restoring, if you have any access to your site, try to use the built-in export tools in WooCommerce or your form plugins to save recent data. Some advanced backup solutions may offer more granular restoration options, but these are complex and not always available.
When should I contact my hosting provider for help instead of trying to fix it myself?
While it’s good to know how to perform basic recovery, you should contact your host immediately in these situations:
- You suspect a server-level issue. Errors like “Error establishing a database connection” or “500 Internal Server Error” often point to problems with the server itself, not WordPress.
- You are completely locked out. If you can’t access your hosting control panel (cPanel) or FTP, you’ll need your provider to restore access.
- You need to use their backups. Before you attempt a manual restore, always ask your host if they have a recent, clean backup. Their restoration process is often much faster.
- You see server configuration errors. If debug logs point to issues with PHP versions, memory limits, or MySQL settings that you cannot change, your host needs to fix them.
- Your site has been suspended. Your host can tell you why your site was flagged (e.g., for malware or resource overuse) and what steps are needed to reinstate it.
Conclusion: Your Path Back to a Healthy Website
I know how overwhelming it feels when your WordPress site breaks. The panic about lost customers and damage to your business reputation is real. But I want you to remember: every broken WordPress site can be fixed.
We’ve walked through the complete WordPress site recovery process, from diagnosing the problem to restoring from a backup and even cleaning a hacked site. The systematic approach of diagnosing, accessing, restoring, and securing is a proven path back to a healthy website.
However, this process highlights a crucial lesson: prevention is far easier than repair. Regular updates, strong passwords, security monitoring, and consistent backups are your insurance policy against future disasters. A WordPress site requires ongoing care to remain secure and functional.
At wpOncall, we’ve built our business on this philosophy of proactive prevention. Our WordPress Maintenance and Support Services handle the daily updates, security scans, and automated backups so you can focus on growing your business, not troubleshooting technical problems.
If you’ve recently recovered from a crash, now is the perfect time to harden your defenses. Our WordPress Site Security services provide comprehensive protection, including firewalls and real-time threat monitoring, to prevent these issues from happening in the first place.
Your website is your most important digital asset. Let us give you the peace of mind that comes with knowing it’s in expert hands. Explore our WordPress Site Security and WordPress Maintenance and Support Services to safeguard your online presence.