{"id":413740,"date":"2026-12-02T04:37:52","date_gmt":"2026-12-02T04:37:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/fatal-rescue\/"},"modified":"2026-12-02T04:37:28","modified_gmt":"2026-12-02T04:37:28","slug":"fatal-rescue","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fatal-rescue\/","author":23613217,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"5.9","requires_php":"7.4","requires_plugins":null,"header_name":"Fatal Rescue","header_author":"Dev","header_description":"Catches a PHP fatal error from a plugin or theme, keeps the site rendering for every visitor, and hands the owner a recovery panel that works while wp-admin is dead.","last_updated":"2026-12-02 04:37:28","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/kapoordev.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":135,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"kapoordev","date":"2026-12-02 04:37:28","revision":3838996}},"upgrade_notice":{"1.0.0":"<p>First release. The panel URL is shown on the Fatal Rescue screen when you activate - save it somewhere outside the site, since it is the only way in during an outage. A notice with that link is mailed only when a fatal is actually caught.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3838994,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3838994,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3838994,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3838994,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3838994,"resolution":"1","location":"assets","locale":"","width":1280,"height":1300},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3838994,"resolution":"2","location":"assets","locale":"","width":1280,"height":1600},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3838994,"resolution":"3","location":"assets","locale":"","width":1280,"height":320}},"screenshots":{"1":"The recovery panel during an outage, opened from the emailed link with no wp-admin, no database and\nno WordPress load. It names the extension responsible, the bootstrap stage it died in, the file and\nline, and how confident the attribution is.","2":"The Fatal Rescue screen in wp-admin while a rehearsal is running: guard status, the two files it owns,\nwhere notices go and what is waiting to send, the last fatal it caught, and the countdown until the\nrehearsal ends on its own.","3":"What a visitor sees while a broken extension is quarantined instead of a PHP stack trace: a plain\n\"temporarily unavailable\" notice, with no diagnosis and no recovery link on it."}},"plugin_section":[],"plugin_tags":[94,906,22682,732,600],"plugin_category":[52,54,59],"plugin_contributors":[297021],"plugin_business_model":[],"class_list":["post-413740","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-error","plugin_tags-fatal-error","plugin_tags-maintenance","plugin_tags-security","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_category-utilities-and-tools","plugin_contributors-kapoordev","plugin_committers-kapoordev"],"banners":{"banner":"https:\/\/ps.w.org\/fatal-rescue\/assets\/banner-772x250.png?rev=3838994","banner_2x":"https:\/\/ps.w.org\/fatal-rescue\/assets\/banner-1544x500.png?rev=3838994","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/fatal-rescue\/assets\/icon-128x128.png?rev=3838994","icon_2x":"https:\/\/ps.w.org\/fatal-rescue\/assets\/icon-256x256.png?rev=3838994","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/fatal-rescue\/assets\/screenshot-1.png?rev=3838994","caption":"The recovery panel during an outage, opened from the emailed link with no wp-admin, no database and\nno WordPress load. It names the extension responsible, the bootstrap stage it died in, the file and\nline, and how confident the attribution is."},{"src":"https:\/\/ps.w.org\/fatal-rescue\/assets\/screenshot-2.png?rev=3838994","caption":"The Fatal Rescue screen in wp-admin while a rehearsal is running: guard status, the two files it owns,\nwhere notices go and what is waiting to send, the last fatal it caught, and the countdown until the\nrehearsal ends on its own."},{"src":"https:\/\/ps.w.org\/fatal-rescue\/assets\/screenshot-3.png?rev=3838994","caption":"What a visitor sees while a broken extension is quarantined instead of a PHP stack trace: a plain\n\"temporarily unavailable\" notice, with no diagnosis and no recovery link on it."}],"raw_content":"<!--section=description-->\n<p>When a plugin fatals, WordPress shows \"There has been a critical error on this website\" to everyone, and the usual fix is to log in and deactivate it. You cannot log in. Recovery Mode emails a link that only works for one browser on one device, and if the database or the theme is the problem, it often fails too.<\/p>\n\n<p>Fatal Rescue changes what happens on the server:<\/p>\n\n<ul>\n<li><strong>The site gets its visitors back.<\/strong> One click on the emailed link skips the broken extension for <em>every<\/em> visitor, not just you \u2014 your pages, your products and your contact form keep working while it sits in quarantine. Fatal Rescue does not disable an extension you have not approved it to disable, so the first fatal of a new outage still shows an error page until you pause it; the email says exactly which extension to pause and the panel is one tap away.<\/li>\n<li><strong>The fix does not need wp-admin.<\/strong> A standalone recovery panel is reachable at a private URL. It never loads WordPress and never queries the database, so it answers on a request where the front end, <code>\/wp-admin\/<\/code> and <code>\/wp-login.php<\/code> all return 500.<\/li>\n<li><strong>Nothing is destroyed.<\/strong> Pausing an extension is not deactivating it. The database still says the plugin is active, its options are untouched, and Restore puts it back exactly as it was.<\/li>\n<li><strong>It says what broke and mails you the link.<\/strong> Each fatal is recorded with the responsible plugin or theme, the bootstrap stage it died in (<code>loading_plugin<\/code>, <code>plugins_loaded<\/code>, <code>template_render<\/code>, <code>setup_theme<\/code>\u2026), the error type and the message. The recovery link reaches the site admin address by email, so you do not have to reach wp-admin to find out where to go.<\/li>\n<li><strong>It catches itself falling.<\/strong> Restore an extension and the same fatal comes straight back? Fatal Rescue pauses it again by itself, at any bootstrap stage, so a recovery you talked yourself into cannot leave the site down. That watch ends as soon as a request finishes cleanly, and expires on its own after five minutes.<\/li>\n<li><strong>Safe mode.<\/strong> Cannot tell which of twelve plugins broke the site? Skip every plugin and the theme in one click, then turn them back on until the fatal returns.<\/li>\n<li><strong>You can test it before you need it.<\/strong> From the Fatal Rescue screen, a rehearsal makes the site fatal on purpose using a test file Fatal Rescue ships for the job and loads only while a rehearsal is armed \u2014 never one of yours, and nothing executable is ever written to your site \u2014 and then recovers it through the same code path a real outage uses. The rehearsal expires by itself after five minutes, and stops the moment you deactivate the plugin.<\/li>\n<\/ul>\n\n<p>The visitor-facing page is a plain \"temporarily unavailable\" notice. Only a logged-in administrator sees the diagnosis, and the recovery link is never printed on a page any visitor can read.<\/p>\n\n<h4>What this is not<\/h4>\n\n<p>It is not a backup plugin and it does not repair code. It does not stop a fatal from happening; it stops one fatal from taking the site down while you decide what to do. Use it with backups, not instead of them.<\/p>\n\n<h4>How it works<\/h4>\n\n<p>WordPress registers its fatal-error handler at <code>wp-settings.php<\/code> line 69, before plugins and themes load, and only a <code>wp-content\/fatal-error-handler.php<\/code> drop-in can replace it. A normal plugin registering <code>shutdown<\/code> runs too late: core's handler has already rendered the error page and exited. On activation, Fatal Rescue installs two small files to get in front of that:<\/p>\n\n<ol>\n<li><code>wp-content\/fatal-error-handler.php<\/code> \u2014 captures the fatal and names the extension responsible.<\/li>\n<li><code>wp-content\/mu-plugins\/fatal-rescue-loader.php<\/code> \u2014 filters <code>option_active_plugins<\/code>, <code>option_template<\/code> and <code>option_stylesheet<\/code> so the quarantine applies to every visitor.<\/li>\n<\/ol>\n\n<p>Those two files are also the only way a URL can reach any PHP this plugin ships. The recovery panel answers at whichever of them this install owns \u2014 the drop-in normally, and the mu-plugin when another tool holds the handler slot \u2014 and it reads the state file directly, with no database, no theme and no other plugin loaded. Request any file inside the plugin folder and you get a blank page: the panel code exits before it runs anything unless one of its two guards called it.<\/p>\n\n<p>Everything else lives inside the plugin folder. The recovery state is a JSON file in <code>wp-content\/uploads\/fatal-rescue\/<\/code>, outside the plugin directory, so a plugin update or a failed upload mid-update cannot delete the record of what is paused. That folder carries its own deny rules, the file is written <code>0600<\/code>, and its name is a random per-install token rather than <code>state.json<\/code>, so a request that guesses the URL finds nothing even on nginx or IIS, where <code>.htaccess<\/code> is never read. If you would rather block the folder outright at the server level, deny <code>wp-content\/uploads\/fatal-rescue<\/code> as you would any other protected upload folder.<\/p>\n\n<h3>Technical notes<\/h3>\n\n<p>Fatal Rescue is deliberately dependency-free in its critical path: no JavaScript, no HTTP requests, no background cron, no third-party service, and no account. The recovery panel is protected by a random key in the URL and HMAC-signed, expiring action tokens, so the link is the credential and a forged form post changes nothing. The only place that credential leaves the server is the outage notice, which is why that mail tells you to save the link and then forget the mail.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Plugins \u2192 Add New \u2192 Upload Plugin \u2192 <code>fatal-rescue.zip<\/code> \u2192 Install Now \u2192 Activate.<\/li>\n<li>Read the panel URL in the green notice and save it somewhere outside the site (password manager, notes app, phone). It is the only way in when the site is down. The plugin never sends it anywhere on its own: use the \"Email me the panel link now\" button on the Fatal Rescue screen when you want a copy off the site.<\/li>\n<li>That is the whole setup. Nothing needs configuring, and there is nothing to do until something breaks.<\/li>\n<\/ol>\n\n<p>If <code>wp-content\/<\/code> is not writable by PHP, the plugin tells you exactly which two files to upload and shows their contents. Both are removed on deactivation, and never overwritten if another tool owns them.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20pausing%20a%20plugin%20delete%20its%20settings%3F\"><h3>Does pausing a plugin delete its settings?<\/h3><\/dt>\n<dd><p>No. The <code>active_plugins<\/code> option is never modified. The extension is filtered out at load time, which is why Restore is instant and safe.<\/p><\/dd>\n<dt id=\"does%20this%20work%20when%20the%20theme%20is%20the%20problem%3F\"><h3>Does this work when the theme is the problem?<\/h3><\/dt>\n<dd><p>Yes. A fatal in a theme's <code>functions.php<\/code> is attributed to the theme, and pausing it switches to a bundled default theme such as Twenty Twenty-Five until you restore yours.<\/p><\/dd>\n<dt id=\"does%20the%20panel%20get%20emailed%20to%20me%3F\"><h3>Does the panel get emailed to me?<\/h3><\/dt>\n<dd><p>Not on activation. Installing the plugin sends no mail of any kind, because the link is a credential and an inbox is not a place to put one unasked.<\/p>\n\n<p>What does get emailed is an outage: when Fatal Rescue catches a fatal, the next page view mails the site admin address a notice naming the extension, the stage it died at, and the panel link. The send happens on the next page view rather than inside the crash - the fatal handler runs at shutdown with whatever is left of a working WordPress, and a fatal caused by the database cannot also be delivered by a database query. There is no cron and no third-party service, so a site nobody visits holds the notice until someone loads a page, and the Fatal Rescue screen always shows what is waiting and why.<\/p>\n\n<p>You can ask for the link itself at any time with the \"Email me the panel link now\" button, which is also how you prove the site can deliver mail before an outage has to depend on it. Nothing sends that one unasked.<\/p>\n\n<p>Delivery goes through <code>wp_mail()<\/code>, so it follows whatever mail setup the site already has. Define <code>FATAL_RESCUE_NO_MAIL<\/code> in <code>wp-config.php<\/code> to stop it, or point the <code>fatal_rescue_notify_email<\/code> filter at an agency address. A site that cannot send mail says so on that screen instead of failing quietly.<\/p><\/dd>\n<dt id=\"can%20it%20fix%20a%20broken%20must-use%20plugin%3F\"><h3>Can it fix a broken must-use plugin?<\/h3><\/dt>\n<dd><p>It reports one honestly and tells you to rename it over FTP. WordPress loads <code>mu-plugins\/<\/code> before any filter runs, so no plugin \u2014 including this one \u2014 can skip an mu-plugin. That is a WordPress limitation, not a Fatal Rescue shortcut.<\/p><\/dd>\n<dt id=\"does%20it%20work%20on%20a%20multisite%20network%3F\"><h3>Does it work on a multisite network?<\/h3><\/dt>\n<dd><p>Yes, with one consequence worth knowing. Both guard files and the recovery state live once per installation \u2014 in <code>wp-content\/<\/code>, not per site \u2014 because they are read before WordPress resolves which site a request is for. So pausing an extension from any site's panel pauses it for the whole network, and Restore returns it network-wide. You do not need to network-activate it: activating on one site installs the shared guards that cover every site. The Fatal Rescue screen is registered under each site's admin rather than Network Admin, so run the rehearsal and the mail test from the site you activated on.<\/p><\/dd>\n<dt id=\"how%20do%20i%20know%20this%20works%20before%20an%20outage%3F\"><h3>How do I know this works before an outage?<\/h3><\/dt>\n<dd><p>Run a rehearsal from the Fatal Rescue screen. The failure comes from <code>src\/rehearsal-fixture.php<\/code>, a file this plugin ships and loads only while a rehearsal is armed, so nothing executable is ever written to your site. Arming writes one file: an expiry marker holding one integer, in <code>wp-content\/uploads\/fatal-rescue<\/code>, the folder Fatal Rescue already keeps its recovery state in. The next front-end page view fatals for real; Fatal Rescue catches it, names Fatal Rescue Rehearsal as the culprit and hands you the panel. Pause it and the site renders again; stop the rehearsal and the marker is deleted. If you walk away, the marker expires in five minutes and the rehearsal ends on its own. Your own plugins, themes and options are never involved.<\/p><\/dd>\n<dt id=\"will%20it%20slow%20my%20site%20down%3F\"><h3>Will it slow my site down?<\/h3><\/dt>\n<dd><p>On a healthy site it registers four option filters, records which bootstrap stage WordPress is in, and touches no database and no file on the request that renders a page: the one write it makes is a refresh of the plain-file snapshot of what is active, and that happens only when the list actually changes or once an hour. No cron job, no outbound request, no query. Mail leaves only when there is something to report, and it reads the state file the guard had already loaded. The settings screen and the installer are only loaded on admin requests, and <code>fatal-error-handler.php<\/code> is read by WordPress only when a fatal is already happening. Nine interleaved pairs of the same page on a local test bed (guard files present, guard files renamed away) came out within noise of each other; absolute timings on one laptop track swap, not code, so the paired comparison is the one worth quoting.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20another%20plugin%20already%20owns%20the%20fatal-error%20handler%3F\"><h3>What happens if another plugin already owns the fatal-error handler?<\/h3><\/dt>\n<dd><p>Fatal Rescue leaves that file alone and says so on its settings screen. Quarantine still works, so a broken extension is still skipped for every visitor; only the custom error page belongs to the other tool. The recovery panel moves to its other guard file, <code>wp-content\/mu-plugins\/fatal-rescue-loader.php<\/code>, and the link on the settings screen, in the dashboard notice and in the outage email points there instead \u2014 so the page you open from your phone on the day the site is broken is still there.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First public release: installable from wp-admin, with a settings screen that reports whether both guard files are in place.<\/li>\n<li>Recovery panel works with no database, no session and no WordPress load, so it answers on a request where the front end, <code>\/wp-admin\/<\/code> and <code>\/wp-login.php<\/code> all return 500.<\/li>\n<li>Installing sends no mail. A caught fatal queues a notice to the site admin address, delivered on the next page view with a 30-minute cooldown and a daily re-report while a problem stays unfixed, and the same screen can send you the panel link on request. The screen shows what is waiting and what failed.<\/li>\n<li>Self-heal re-pause when a restored extension fatals again, for fatals at every bootstrap stage - including the ones that happen after <code>wp_loaded<\/code>, inside a template or on the <code>wp<\/code> hook. That watch ends as soon as a request finishes cleanly and expires on its own after five minutes, so it cannot outlive the restore it belongs to.<\/li>\n<li>Safe mode for \"I do not know which plugin did this\".<\/li>\n<li>Rehearsal mode: watch a real fatal get recovered, on a test file this plugin ships for the purpose, before you have a real one.<\/li>\n<\/ul>","raw_excerpt":"A PHP fatal from a plugin or theme? Get a recovery panel that works while wp-admin is down, and pause the culprit for every visitor in one click.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/413740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=413740"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kapoordev"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=413740"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=413740"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=413740"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=413740"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=413740"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=413740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}