Linux 软件免费装
Banner图

Faultline – Error Log Assistant

开发者 riseofweb
更新时间 2026年10月7日 01:14
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

debug error log troubleshooting wp_debug php errors

下载

1.3 1.0 1.1 1.2

详情介绍:

Faultline turns your WordPress error log into answers: what broke, which plugin or theme caused it, and what to do next. If you have ever turned on WP_DEBUG, found an error in the log, and had no idea which plugin caused it or what to do about it, this plugin is for you. Find the cause Know when something breaks Keep the log readable Private details stay private Ask AI links and forum drafts replace server paths, your domain, the database table prefix, email addresses and IP addresses with placeholders before the text leaves your browser. Nothing is sent automatically: you always see the text first. Guided setup Setup takes a few minutes, one short screen at a time: Nothing is removed from an existing log until you finish or skip setup. You can run it again from the Status tab. What Faultline will never do External services Faultline can show "Ask AI" links next to each log entry. Links to Claude and ChatGPT are shown by default. Choose which links appear, or turn them all off, under Settings > Troubleshooting links. When you click one of these links, your browser opens that service's website in a new tab, with a copy of the log entry in the page's URL. Faultline itself sends nothing to these services. There is no server-side request, and nothing is sent until you click a link. Before the link is built, your browser removes server paths, your domain, the table prefix, email addresses and IP addresses from the entry. This is a best-effort pattern match and cannot catch every sensitive detail, such as an order ID or a customer name inside an error message. The services these links can point to: No service is contacted unless you click its link.

安装:

  1. In your WordPress admin, go to Plugins > Add New Plugin, search for "Faultline" and install it. Or upload the faultline-error-log-assistant folder to /wp-content/plugins/.
  2. Activate the plugin on the Plugins screen.
  3. Go to Tools > Faultline and follow Setup. It copies any previous PHP error logs, turns on logging (it can edit wp-config.php for you, with a backup) and checks that the log cannot be downloaded from the web.
  4. After Setup, the same menu item opens the Log tab. Setup can be run again from the Status tab.

屏幕截图:

  • Setup, at the Reduce noise step, naming the plugins that load before Faultline.
  • The Status tab: log actions and a check of your debug settings.
  • The Settings tab, where you choose which types of message stay out of the log.
  • A fatal error caught as it happens: the alert banner, the file that caused it (here a must-use plugin) and where the request came from.

常见问题:

How do I view my WordPress error log?

Activate Faultline and go to Tools > Faultline. If logging is off, Setup turns it on for you. The Log tab then shows every entry with its severity, the plugin or theme that caused it, and a link to the source code.

Which plugin is causing this PHP error?

Each entry on the Log tab has a "Caused by" label naming the plugin or theme, with a link to that plugin's WordPress.org support forum. "Draft forum post" writes a support request with the error and your site details filled in.

How do I turn on WP_DEBUG safely?

Use Setup. Three settings have to be right together: WP_DEBUG, WP_DEBUG_LOG and WP_DEBUG_DISPLAY. Get one wrong and either nothing is logged or PHP errors are shown to your visitors. Faultline checks all three and can write the correct lines to wp-config.php for you, with a backup first, or give you the lines to paste in yourself.

How do I stop WordPress from filling up debug.log with notices?

Under Settings, tick the types to suppress: notices, deprecation warnings, coding-standard suggestions and, if you choose, warnings. Suppressed messages are never written, so there is nothing to clean up.

Is my debug.log file publicly accessible to anyone on the internet?

It may be. debug.log usually sits in a folder your web server serves, and it contains server paths and stack traces. Faultline requests your log over the web the way a stranger would and tells you whether it could be read. Setup runs this check at the end, and you can repeat it on the Status tab. If the log can be read, a warning shows on every admin screen until it is fixed. There are two fixes: move the log to a private file name that bots cannot guess (one click, works on any server, keeps every entry), or add a blocking rule for Apache, LiteSpeed, nginx or IIS. On nginx only your host can usually add the rule, so Faultline writes the message to send them.

I used to have a PHP error log from my host. Will I lose it?

No. Setup looks for the PHP error logs your site was writing before, such as the error_log files hosting control panels create, and offers to copy their recent entries into the new log. The original files are only read, never edited, moved or deleted. Automatic cleanup also waits until you finish or skip Setup.

Does this replace my existing log viewer plugin?

It can. Faultline shows every log entry with its severity, the plugin or theme that caused it and the source code, alerts you to fatal errors, and keeps routine notices out of debug.log.

What makes this different from other WordPress debug log plugins?

Faultline is built for acting on errors, not only reading them. It names the plugin or theme behind each error, opens the line of code that failed, drafts a support request, and links to AI help with private details removed. It can also stop routine notices and deprecation warnings being written in the first place. All of this is free.

Will this plugin ever show PHP errors to my site visitors?

No. Faultline only ever keeps messages out of the log. It never changes PHP's error reporting level and never turns on WP_DEBUG_DISPLAY, the setting that prints errors on screen. Setup sets WP_DEBUG_DISPLAY to false.

Can it guarantee it loads before every other plugin?

Not completely, but close. Turn on the early loader under Settings and Faultline starts before all of your regular plugins. The early loader is one small file in your must-use plugins folder (wp-content/mu-plugins). It is only added when you click the button, and it does nothing unless Faultline is active. Faultline still cannot start before WordPress itself, or before a must-use plugin whose file name sorts earlier. The Status tab shows what is in effect. If your host does not let WordPress write to that folder, Settings shows which file to copy there yourself. It also offers "Load Faultline first", which moves Faultline to the front of your plugin list instead.

What happens to wp-config.php if I deactivate or delete the plugin?

When you deactivate, Faultline asks whether to undo its wp-config.php changes first, and removes its early loader file if you turned that on. Deleting the plugin removes its settings and stored data. It does not touch wp-config.php or your log file.

Does this work on WordPress multisite?

Yes, site by site. On a network, Faultline does not add the early loader file for you, because one file affects every site. Settings shows the file to copy yourself. When the plugin is network-activated, the "Load Faultline first" setting does nothing, because WordPress stores network-wide plugins differently.

Will suppressing notices hide bugs from me?

It hides the types of message you choose, and nothing else. Fatal errors, parse errors and uncaught exceptions are always logged. Warnings are logged unless you turn them off. Notices, deprecation warnings and coding-standard suggestions are suppressed by default because they are rarely something you can act on in someone else's plugin.

更新日志:

1.3 - 2026-10-06 1.2 - 2026-10-03 1.1 - 2026-09-29 1.0 - 2026-09-27