[WordPress] 外掛分享: Error Sniffing Pug – Tells you what broke

首頁外掛目錄 › Error Sniffing Pug – Tells you what broke
WordPress 外掛 Error Sniffing Pug – Tells you what broke 的封面圖片
全新外掛
安裝啟用
尚無評分
14 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.0+ v0.4.4 上架:2026-08-16

內容簡介

Error Sniffing Pug 是一款能夠幫助 WordPress 使用者快速診斷致命錯誤的外掛。當網站發生錯誤時,它提供清晰的錯誤說明、相關外掛或佈景主題的識別,並發送錯誤通知,讓使用者能迅速採取行動。

【主要功能】
• 提供清晰的錯誤診斷
• 指出錯誤來源的外掛或佈景主題
• 發送錯誤通知郵件
• 生成隱私安全的錯誤報告
• 顯示後續管理通知
• 執行衝突掃描功能

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Error Sniffing Pug – Tells you what broke」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

When WordPress hits a fatal error, the usual result is a blank “There has been a critical error on this website” page and a cryptic line buried in a log file you have to go find. Pug catches that moment and turns it into something you can act on.
What you get

A plain-language diagnosis. Pug recognizes common fatal patterns — an undefined function or method, calling a method on null, a class that can’t be found, “cannot redeclare”, out of memory, max execution time, parse errors, a missing file, a type error, and more — and explains in one sentence what actually went wrong. When it doesn’t recognize the pattern, it says so honestly rather than guessing.
The culprit, named. Pug maps the crash back to the specific plugin, must-use plugin, or theme whose code was running, so you’re not guessing which of thirty plugins to suspect.
A crash-notification email. Point Pug at an address and it emails you when a new fatal is captured — the plugin involved, the plain-language reason, and where it happened — so you learn about problems without watching a dashboard. Email is sent shortly after the crash from a safe context, never during the crash itself.
A privacy-safe bug report. For any crash, Pug produces a copy-ready report for the responsible plugin’s support forum, with absolute paths, your home directory, and your site’s address stripped out. Pug never transmits it — you copy and paste it yourself.
An after-crash admin notice. The next time you open wp-admin after a fatal is captured, Pug shows a dismissible notice linking straight to the report — so you find out even if you aren’t watching a dashboard, and even if email isn’t configured.
A conflict scanner. On demand, Pug scans your active plugins for functions or classes declared by more than one of them — the “cannot redeclare” landmine — and names both sides before it bites you.

How Pug captures fatals
Pug uses WordPress’ own drop-in mechanism. On activation it installs wp-content/fatal-error-handler.php, which core loads earlier than any plugin — that is what lets Pug see a fatal that happens before normal plugins have even loaded. It subclasses core’s handler and then hands control straight back to WordPress, so Recovery Mode and the recovery email keep working exactly as they do without Pug. Deactivating the plugin removes the drop-in and stops capture; deleting the plugin removes everything.
What Pug does not do

It does not send your crash details to us or to any third party. Diagnosis happens on your own server, and the bug report is copy-and-paste, not an automatic upload.
It does not modify or delete your posts, pages, or any content. It reads nothing from your database except its own settings.
It does not run its analysis during a crash beyond recording the incident — no network calls, no heavy work on the error path.

External services
This plugin connects to one external service, described below. No crash contents are ever sent anywhere.
WordPress.org plugin API (api.wordpress.org)
When a crash is attributed to a plugin, Pug asks the WordPress.org plugin API whether that plugin is listed there, so it can offer a link to the plugin’s page and support forum. The only data sent is the plugin’s slug (folder name). This happens on demand while you view a crash report, is cached, and never runs during a crash. WordPress.org is operated by the WordPress Foundation; see https://wordpress.org/about/privacy/.

延伸相關外掛

文章
Filter
Mastodon