WordPress emergency repair should begin with stabilization, not random plugin changes. If the site is down, showing a blank page, returning a 500 response, displaying a critical error, redirecting visitors, or failing at checkout, preserve a backup and identify the failure scope before changing production files.
In this guide
This guide gives you an ordered first-hour response. It covers what to check first, how to separate an application problem from hosting, DNS, security, or payment problems, and how to confirm that the repair is actually complete.
First: protect the site and define the emergency
Before editing wp-config.php, .htaccess, the database, or server settings, record the time the problem started and what changed immediately beforehand. A plugin update, theme deployment, PHP change, DNS edit, SSL change, host migration, or security alert can dramatically narrow the search.
- Open the site in a private browser window and test both the homepage and a normal inner page.
- Test
/wp-admin/separately. A public-site failure and an admin-only failure often have different causes. - Test from a second network or device. If only one browser or location fails, local cache, DNS, CDN, or firewall rules may be involved.
- Pause automated updates, scheduled deployments, and cache purges if you can do so safely.
- Take a hosting snapshot or backup before making changes. Confirm that the backup contains both the database and
wp-content, especially uploads.
Do not repeatedly refresh a failing checkout, contact form, or import process. Repeated requests can create duplicate orders, duplicate emails, or additional load while the underlying issue remains.
Use the symptom to choose the safest path
The visible symptom is a starting point, not a diagnosis. Use this compact guide to choose the next check.
- Every page is down: check hosting status, DNS, SSL, server logs, and the time of the last change before disabling WordPress components.
- Only one page or feature fails: inspect that template, shortcode, form, product, or integration rather than restoring the entire site.
- wp-admin fails but the public site works: suspect an admin-side plugin, PHP error, permissions issue, firewall rule, or exhausted server resource.
- A critical error or blank page appears after an update: look for a fatal PHP error and roll back the changed component only if a known-good backup or package is available.
- Visitors are redirected, see unfamiliar content, or receive browser security warnings: treat the event as a possible compromise. Avoid deleting suspicious files before preserving a copy for investigation.
- Checkout or payment fails while browsing works: test cart, checkout, payment callback, email, and order creation separately. Do not assume a full-site outage.
Check hosting, DNS, SSL, and server resources
WordPress cannot repair a domain that does not reach its server. Check your hosting provider’s status page and control panel first. Look for disk usage, account suspension notices, resource limits, PHP errors, recent restores, and web-server error logs. Exact labels vary by host.
Confirm whether the domain reaches the expected server
Compare the domain’s current DNS records with the server or CDN details supplied by your host. If DNS was recently changed, different visitors may reach different destinations while records update. Do not change nameservers or A records during an emergency unless you have confirmed the correct target and understand the effect on mail and other subdomains.
Check HTTPS without changing settings blindly
Test both the HTTP and HTTPS versions, the homepage, and one inner URL. An expired certificate, incorrect proxy mode, or forced redirect can make the site appear down even when PHP is healthy. Avoid editing redirect rules until you know whether the redirect is generated by WordPress, the web server, a CDN, or a security plugin.
Check capacity
A full disk can prevent WordPress from writing cache files, sessions, logs, updates, and uploads. High CPU or memory usage can cause intermittent 500 responses. Remove only clearly disposable files through your host’s documented tools; do not delete unknown files from wp-content or the database to create space.

Inspect the most recent change
When an outage follows an update, the changed component is the leading suspect, but not proof. A plugin can expose a pre-existing PHP, database, memory, or compatibility problem. Note the exact plugin, theme, WordPress, PHP, or server change and whether it happened manually or automatically.
If you can access the dashboard, use the normal WordPress update or plugin screen to deactivate the suspected component. Make one change at a time and test immediately. If the dashboard is unavailable, use your host’s file manager or SFTP only if you know how to restore the original folder name. Renaming a plugin directory can disable it, but it is a production change: preserve the original name and avoid editing plugin code as a first response.
For a fatal-error message, record the file path, function, and line number. Those details often identify the failing plugin or theme. WordPress’s official documentation provides version-dependent guidance for recovery and debugging options.
If the suspected problem is a theme, switch temporarily to an installed default theme only when you have a safe way to restore the original. Theme changes can affect widgets, menus, templates, and layout, so document the active theme before changing it.
Use logs and recovery tools without exposing sensitive data
Error logs are more useful than the browser’s generic “critical error” or “500” message. Check the hosting panel’s PHP and web-server logs around the first failure. Look for fatal errors, memory exhaustion, permission failures, database connection errors, and upstream timeouts.
For temporary WordPress logging, a qualified administrator may enable debugging in wp-config.php, but logs must not be displayed publicly. If you use WP_DEBUG_LOG, keep WP_DEBUG_DISPLAY disabled, restrict access to the log, and turn debugging off after collecting the evidence. Never paste database passwords, salts, API keys, customer data, or full logs into a public forum.
WordPress Recovery Mode may send an administrator a recovery link after a fatal error. Use that link only through the expected site domain and verify that the email is genuine. It can help isolate a plugin or theme, but it does not prove that all production traffic, scheduled jobs, or integrations are healthy.
Restore or roll back only when the scope is clear
A restore is appropriate when files or database data are damaged, the change cannot be isolated, or the site must return to a known-good state quickly. It is not automatically safer than a targeted fix. A database restore can erase recent orders, form submissions, user accounts, or editorial work.
- Identify the backup timestamp immediately before the incident.
- Compare it with recent orders, registrations, posts, uploads, and database changes.
- Ask the host whether a restore can be performed to a staging copy first.
- Record the current site state before replacing anything.
- Restore files and database consistently; mixing old files with a newer database can create new errors.
- After restoration, change credentials if compromise is possible and prevent the triggering update from repeating.
Do not run database repair, search-and-replace, or SQL commands on production unless you have a verified backup and understand the affected tables. A syntax error or incorrect URL replacement can create a second emergency.
Investigate possible compromise separately
Redirects to unfamiliar domains, new administrator accounts, changed files, unknown scheduled tasks, or security warnings require a security response, not just a plugin rollback. Put the site into a controlled maintenance or lockdown state if your host or security process supports it, while preserving evidence.
Change hosting, WordPress administrator, SFTP, database, and API credentials from a clean device. Review administrator accounts and active sessions. Ask the host whether server-side malware scanning, access logs, or a clean snapshot is available. Do not assume that deleting one suspicious plugin removes persistence from files, the database, cron tasks, or server configuration.

For a confirmed infection, use a specialist cleanup process such as this WordPress malware removal workflow rather than repeatedly reinstalling plugins. A professional WordPress malware removal service can be appropriate when the site handles payments, personal data, or has been reinfected.
Verify the repair before declaring success
A homepage that loads is not enough. Complete this verification pass:
- Open the homepage, representative posts, pages, media, search, login, and an administrator screen.
- Test the affected workflow from a logged-out browser and, where relevant, a mobile device or second network.
- For WooCommerce, test cart, checkout, payment return, order creation, stock, tax, email, and webhooks using the store’s approved test procedure.
- Submit a test form and confirm delivery, spam handling, and the expected notification.
- Check that HTTPS, redirects, canonical URLs, robots rules, and essential scripts behave normally.
- Review PHP, web-server, security, and application logs for new errors after the fix.
- Purge only the relevant page, object, CDN, and browser caches, then test again.
- Monitor failed requests and server resources for a period appropriate to the site’s traffic.
If the site works for you but not visitors, compare CDN, cache, DNS, firewall, and geographic behavior before changing WordPress. The related guide on browser-specific WordPress failures can help separate a local display problem from an origin-server failure.
When to stop troubleshooting yourself
Escalate immediately when there is no usable backup, customer data may be exposed, the database is damaged, the server is out of space, payment orders are at risk, or the same failure returns after a rollback. Also stop if you are about to edit DNS, production .htaccess, wp-config.php, database tables, PHP settings, or permissions without a tested recovery path.
Provide the responder with the site URL, affected URLs, start time, recent changes, screenshots, error-log excerpts with secrets removed, hosting details, backup timestamps, and steps already attempted. A focused handoff is faster and safer than repeatedly changing unrelated settings. For a production outage that needs hands-on diagnosis, see WordPress Site Repair.
Specific questions to ask during an emergency
Should I deactivate every plugin?
No. Deactivating everything can remove useful evidence and disrupt unrelated features. Start with the component changed immediately before the failure, or use a staging copy to perform a controlled conflict test.
Is restoring a backup always the fastest fix?
No. A restore may remove orders, posts, or user data created after the backup. Compare the backup age with the site’s business activity and prefer a targeted rollback when the failing component is known.
Why does the site load for administrators but fail for visitors?
Logged-in users may bypass page caches, see different permissions, or avoid a CDN path. Test logged out and inspect cache, firewall, DNS, and origin responses rather than assuming WordPress itself is repaired.
What evidence should I preserve?
Save timestamps, screenshots, response codes, affected URLs, recent change history, relevant logs, suspicious files, and backup details. Keep copies private and remove credentials or personal information before sharing them.



