[WordPress] 外掛分享: ErrorLight

首頁 › 外掛目錄 › ErrorLight
WordPress 外掛 ErrorLight 的封面圖片
全新外掛
安裝啟用
—
尚無評分
剛更新
最後更新
—
問題解決
WordPress 5.3+ PHP 7.4+ v1.0.0 上架:2026-11-29

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ErrorLight」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

ErrorLight is made for people who have never opened a log file. It shows the end of your WordPress debug.log and your PHP error log, sorts the messages by how serious they are, explains each one in a plain sentence and says whether it comes from a plugin, a theme or WordPress itself. It also lets an administrator turn debug logging on and off from a panel, without editing any file by hand.
You find it in Tools → ErrorLight. Only administrators can use it. On a multisite network only the super administrator can, and the button that edits wp-config.php is not offered there: the file is shared by every site, so the panel shows the lines to set by hand.
Logs are private data, so the button is careful. ErrorLight turns logging on from the panel only after a test has confirmed that the log folder cannot be opened from a web address, whatever your server. If it cannot confirm it, wp-config.php is not changed: the panel hides the button, explains why, gives you a message for your hosting provider and shows the lines you can add by hand. See the FAQ.
What you can do

Turn debug logging on and off with one button and a confirmation. ErrorLight edits only the three debug constants of wp-config.php, checks the result and restores the original automatically if anything goes wrong.
Turn it off automatically, after 1 hour, 6 hours, 24 hours, 3 days or 7 days, or get a reminder by e-mail every day, 3 days or 7 days. A forgotten debug log is a privacy risk, so you decide what happens before you switch it on.
Keep the log out of reach. When logging is turned on from the panel, the log is saved in a folder with a name nobody can guess, inside your uploads folder, with rules that block access from the web. Before turning logging on, and whenever you press the check button, ErrorLight tests that the log cannot be downloaded.
Read the log in plain language. Each message gets a level (serious problem, warning, minor note), a simple sentence, a readable time and the plugin, theme or WordPress part it comes from.
Choose what to look at: the most recent entries, the last day in the log, the last 7 days in the log or your own dates.
Find what you need: identical messages are shown once with how many times they appear, buttons for the most repeated messages and for common problems, a filter by exact type, and two search fields (what happened, and where it was reported).
Download a log, or e-mail an excerpt of it (the last 20, 50 or 100 lines) to an address you choose, with an option to replace file paths, web addresses, e-mail addresses and IP addresses with placeholders.
Copy a summary for support when you ask someone for help, in a safe version with no personal data and a complete version with a warning.
Spot the old wp-content/debug.log, the file name everyone tries first. ErrorLight shows where it is, tells you whether it can be downloaded and suggests how to remove it (it never deletes files outside its own folder).

What this plugin does not do

It does not fix errors: it shows them and says where they come from.
It cannot tell you whether your site is healthy or safe, and it is not a security plugin or a malware scanner.
It cannot read server logs that PHP has no access to, and it cannot turn on the PHP error log: that setting belongs to your server. ErrorLight shows it when it exists.
It does not use any external service and does not send data to anyone, except the e-mails you ask for (see Privacy).
It does not change any other setting of wp-config.php. WP_DEBUG_DISPLAY is always kept off, so errors are never shown to your visitors.
It does not turn logging on from the button when it cannot confirm that the log folder is private (for example when the site cannot test itself, or the server has no rule that blocks the folder).
It does not create temporary or backup copies of wp-config.php.

Privacy
ErrorLight does not collect data and does not contact any external service. The only requests it makes go to your own site (loopback requests), to check that the logs cannot be downloaded from the web.
A log can contain file paths, user names, e-mail addresses and other personal data, and the panel says so wherever you can download, copy or send one. The e-mails ErrorLight sends are only its own, sent with wp_mail():

the excerpt you ask for, to the address you type (it is not saved);
the reminder, if you choose to be reminded, to the address you type;
a single notice to the site administrator address if an automatic turn-off fails. It contains no part of the log.

It does not hook into other e-mails of your site.
What ErrorLight writes

Database: one option, e3p_errorlight_settings, with your turn-off or reminder choice. It is created when you turn logging on from the panel and removed when you turn it off. Up to two scheduled WP-Cron events go with it.
Files: wp-config.php (when you press the button, with a confirmation, and when the automatic turn-off you chose runs: only the three debug constants, written directly into the file, with no temporary or backup copy), and a folder named errorlight inside your uploads folder (found with wp_upload_dir()), with the log folder and its protection files, a lock file and short-lived test files that are deleted right away. The folder is created when you try to turn logging on or run the check, even if logging is then not turned on. ErrorLight never writes to or deletes any other file: the old wp-content/debug.log is only read, and you remove it yourself.

Everything ErrorLight creates, including the errorlight folder in uploads and the logs in it, is removed when you delete the plugin. The lines it added to wp-config.php stay, so download your logs and turn logging off first: if logging is still on, WordPress keeps debugging without a log file until you set WP_DEBUG and WP_DEBUG_LOG to false there.

延伸相關外掛

文章
Filter
Mastodon