Skip to content
Rescue 404

Theme Errors

WordPress Theme Causes Critical Error

Intermediate Risk: medium

Last reviewed

Hosting access may not be needed Database access usually not needed

Direct answer

A theme causing “There has been a critical error on this website” means a PHP fatal is firing from the active theme’s files — functions.php, a template, or a bundled library — as soon as WordPress tries to load it. Use the recovery-mode email or switch to a default theme from wp-admin, or rename the theme folder via FTP if wp-admin is also down, then read the log before reactivating.

Unlike a plugin fatal, a theme-caused critical error usually breaks the entire front end at once because every template depends on the active theme loading successfully. This can follow a theme activation, a functions.php edit, a customizer change, or simply the theme meeting an incompatible PHP or WordPress version for the first time. This guide separates “switch theme to regain access” from “find and fix the actual line” so you are not stuck permanently on a default theme.

Intermediate

Key facts

Verifiable numbers and definitions — each claim links to its source.

  • WordPress Recovery Mode can pause a broken theme or plugin so you can regain admin access after a critical error. (WordPress Recovery Mode)
  • Child themes keep customizations separate so parent theme updates are less likely to wipe your changes. (WordPress child themes)
  • WP_DEBUG and related constants help surface PHP fatals from a theme instead of a blank critical-error screen. (Debugging in WordPress)

What the error means

Every WordPress page render depends on the active theme’s template files and functions.php loading without error. When that code throws an uncaught PHP fatal — a missing function, a call to an undefined class, a parse error from a bad edit, or a PHP version incompatibility — WordPress 5.2+ shows the critical-error screen instead of a blank white page and may email the site admin a Recovery Mode link that pauses the theme for that session only. Your posts, pages, and database content are untouched; the problem is that PHP cannot finish executing the theme code needed to display them. This is functionally different from a plugin critical error because switching themes, not deactivating a plugin, is usually the fastest path back to a working site.

Common symptoms

  • Critical error appears immediately after activating a theme, saving a customizer change, or editing functions.php
  • Recovery-mode email names the active theme (or a parent theme) as the paused extension
  • Every front-end page fails the same way, including pages that worked before the last theme change
  • wp-admin may still load (with the error appearing only on the front end) or may fail identically
  • PHP error log or debug.log shows a fatal path under wp-content/themes/your-theme/
  • The error appeared right after a WordPress core or PHP version update, with no other explanation
  • A child theme is active but the fatal traces to the parent theme’s files

Most likely causes

  1. 01 Syntax error or undefined function introduced by a direct functions.php edit
  2. 02 Theme requires a newer PHP version than the host provides, or uses a function removed in a newer PHP release
  3. 03 Theme was only partially uploaded or extracted, leaving missing template or library files
  4. 04 Parent/child theme mismatch after only one of the two was updated
  5. 05 Theme depends on a companion plugin (page builder, framework, or icon library) that is now missing or deactivated
  6. 06 Customizer or theme-mod data corrupted or referencing a deleted template part
  7. 07 Conflict between the theme and another active plugin loading the same class or function twice

What changed before the problem started

  • Theme was activated for the first time, or reactivated after a long period unused
  • A customizer setting, theme option, or template edit was saved just before the error appeared
  • functions.php or a template file was edited directly through the theme editor or FTP
  • WordPress core, PHP version, or a companion framework plugin was updated the same day
  • Theme or parent theme was updated through Appearance → Themes or an auto-update

Troubleshooting steps

  1. 01

    Open the recovery-mode email and confirm which theme is named

    Check the site admin inbox for “Your Site is Experiencing a Technical Issue.” Click the recovery link, log in, and note whether WordPress paused the active theme or a specific parent theme. Do not fix anything yet — this just confirms the target before you touch files.

  2. 02

    Switch to a default theme from wp-admin if it still loads

    Go to Appearance → Themes and activate Twenty Twenty-Four (or another installed default) without deleting the broken theme. Reload the front end in a private window. Success signal: the site loads normally on the default theme, confirming the fault is theme-specific, not a plugin or server issue.

  3. 03

    Rename the theme folder via FTP or File Manager if wp-admin is also down

    In wp-content/themes/, rename your-theme to your-theme.disabled. WordPress falls back to any remaining default theme. If none exists, upload a fresh copy of Twenty Twenty-Four from wordpress.org so there is something to fall back to.

  4. 04

    Read the PHP error log or a briefly enabled debug.log

    Set WP_DEBUG and WP_DEBUG_LOG to true and WP_DEBUG_DISPLAY to false in wp-config.php, reproduce the error once, then read wp-content/debug.log for the exact file and line under wp-content/themes/. Turn debug settings back off once you have the trace so visitors never see internals.

  5. 05

    Undo the most recent theme-related change first

    If the timing lines up with a customizer save or a functions.php edit, revert that specific change (restore the previous functions.php from backup, or reset the customizer setting) before assuming the whole theme is broken. Many theme-caused critical errors are a single bad edit, not a corrupted theme package.

  6. 06

    Reinstall the theme from a clean copy if files look incomplete

    Delete the suspect theme folder (only after confirming a backup or fresh download exists) and re-upload it from the vendor source or your last known-good backup. A partial upload or interrupted extraction is a common, easy-to-miss cause.

When to stop troubleshooting

Stop DIY changes if you cannot access files or the database, both parent and child theme were updated at once and logs are ambiguous, the site is a live store or lead-generation page losing revenue by the hour, or you suspect the theme folder was tampered with (unexpected files, unfamiliar code). Hand off with the theme name, parent/child relationship, the exact log line, and a backup timestamp rather than continuing to guess on production.

Information to collect before requesting help

  • 01 Theme name, version, and whether it is a parent or child theme setup
  • 02 Exact trigger: activation, customizer save, functions.php edit, or update
  • 03 Whether wp-admin still loads and which theme currently shows as active
  • 04 PHP error log or debug.log line naming the theme file and function
  • 05 PHP version and WordPress version at the time of the error
  • 06 Any companion plugin (builder, framework) the theme depends on
  • 07 Backup availability for theme files and the database before the change

How a professional repairs the problem

A pro confirms the theme is the true source using the recovery-mode notice and error logs, restores access immediately via a default-theme switch or targeted folder rename, then traces the fatal to the specific file and line — a bad edit, a version mismatch, a missing companion plugin, or corrupted customizer data — before reactivating. Once stable, we verify key templates (home, shop, forms) render correctly, flush caches, and document a safer update path so the same theme does not take the site down again.

Frequently asked questions

Will switching to a default theme delete my content? +
No. Posts, pages, and most settings remain in the database. You may temporarily lose theme-specific widgets, menus, or customizer options until you reactivate a working theme or migrate those settings manually.
How is this different from a plugin causing the critical error? +
The recovery-mode notice and error log both name the failing extension. Theme fatals live under wp-content/themes/ and typically break every page at once because all templates depend on the theme; plugin fatals under wp-content/plugins/ can be more isolated.
I edited functions.php and now the site is down — how do I undo it? +
Reconnect via FTP or File Manager and restore the previous functions.php from a backup, or remove the specific lines you added. A single missing semicolon or bracket is enough to fatal an entire theme.
Can a child theme break even if I never touched it? +
Yes. If the parent theme updates and removes or renames a template function your child theme relies on, the child theme fatals on the next page load even though its own files never changed.
Should I delete the broken theme instead of renaming it? +
Rename first. Deleting removes any custom edits and makes rollback impossible without a fresh download or backup. Delete only after you have confirmed a working replacement.
Is raising PHP memory the fix for a theme critical error? +
Rarely. Most theme-caused critical errors are code faults (syntax errors, missing functions, version mismatches), not memory exhaustion. Raise memory only if the log explicitly reports memory exhaustion.

Repair dispatch

Still Need Help Fixing Your Website?

If you are not comfortable editing website files, changing server settings, repairing a database, or troubleshooting a live website, professional help may prevent additional damage or downtime. We will review the problem before accepting the repair.

  • You will receive a clear explanation of the likely cause.
  • We will tell you if the issue falls outside our repair scope.
  • No additional work will be performed without approval.
  • A backup should be created whenever access and website condition allow it.

Do not share passwords through an unencrypted contact form — use Password Pusher (self-destructing link). Prefer a dedicated Rescue 404 admin account, not your personal owner login; if you cannot create one yet, we will add ours after repair.

Written by Josh

Last reviewed

Platform note: Full rescue available for WordPress and self-hosted sites. Wix, Squarespace, Webflow, Weebly, and similar closed builders have very limited backend access — fixes may not be possible. I will tell you honestly before we start.