Health Check & Troubleshooting

外掛說明

這個外掛會在 WordPress 網站上執行多項檢查,以便偵測常見的組態錯誤及已知問題,並且可讓外掛及佈景主題開發者加入必要的檢查。

外掛的偵錯功能可讓網站管理員收集 WordPress 網站及伺服器設定的相關資訊,這樣便能輕鬆地將必要資訊分享給佈景主題、外掛或官方 WordPress.org 技術支援論壇的技術支援代表。

[疑難排解] 功能能讓網站管理員執行乾淨的 WordPress 工作階段,此時會先將全部外掛停用,並使用預設佈景主題,且這個工作階段僅對當下的網站管理員有效,不會影響其他使用者。停用 [疑難排解] 功能或登出網站後,工作階段便會失效。

[工具] 分頁中的工具能讓網站管理員檢查 WordPress 核心程式檔案是否遭到竄改、電子郵件能否順利傳送,以及外掛是否能與未來的 PHP 版本更新相容。

如需更全面有效使用 Health Check 外掛的示範案例,請參閱 WordPress.org 技術支援小組撰寫的外掛手冊頁面

非常歡迎大家在 WordPress.org 技術支援論壇GitHub 專案頁面,或透過官方 Slack#forums#core-site-health 頻道提出意見反應。

螢幕擷圖

  • 系統通過自動測試後所顯示的網站狀態檢查畫面
  • [偵錯資訊] 分頁提供了可進行複製貼上的欄位
  • 可執行於網站的選取工具
  • [疑難排解] 模式啟用後,會顯示於網站的 [控制台] 首頁

常見問題集

啟用疑難排解功能後無法存取網站

如因啟用 [疑難排解模式] 造成任何問題,清除瀏覽器 Cookie 便可將該模式予以停用。

不了解如何清除瀏覽器的 Cookie 嗎?不必擔心,請關閉所有瀏覽器視窗、或重新啟動電腦,便能自動清除因啟用 [移難排解模式] 所產生的 Cookie。

PHP 相容性檢查結果顯示這個外掛僅能執行於某個版本的 PHP?

開發這個外掛是為了想為最多使用者提供技術支援工具,這代表它的程式碼可執行於較舊的網站。

用於檢查 PHP 相容性的工具無法區隔這類程式碼與真實程式碼,因此會顯示這類錯誤回應。

目前這個外掛已與 PHP 5.2 到 7.3 間的每個版本進行過測試,在全部版本上均能正確執行。

在何處可以回報安全性程式碼錯誤?

網站狀況團隊及 WordPress 社群對安全性程式碼錯誤一向嚴陣以待,我們非常感謝使用者披露相關發現所付出的心力,並會盡全力解決使用者提出的問題。

如需回報安全性問題,請參考 WordPress HackerOne 計畫。

使用者評論

2024 年 2 月 18 日
Too bad I didn't read the warnings here before I installed. Installed, activated, and selected Troubleshooting. Boom! Site is gone. Error 500 with nothing in the logs. Deleting the plugin via ftp didn't help so now I have to get it restored from backup. Pathetic.
2024 年 2 月 11 日
As others have said, troubleshooting mode breaks your website. You will abruptly lose access to the dashboard, can't login, and the website itself won't load for users. The fix? Go into your web directory through FTP and delete the plugin from your wp-content folder. When I did this I was able to reload the dashboard. Oddly, even without the plugin, I was prompted to disable troubleshooting mode, which I did, and then everything was restored. Update: After deleting the plugin through FTP, the ability to "troubleshoot" from the plugins page was still there — and causes a "critical error". Thankfully, the back button took me back. There's also a weird "must use" plugin artifact. By re-installing Health Check (but NOT activating it) and then deleting it again, these artifacts disappear. What a disaster of a plugin.
2024 年 1 月 4 日 1 則留言
THIS IS MY FIRST REVIEW EVER! BUT STAY AWAY FROM THIS PLUGIN! I ENTERED TROUBLESHOOTING MODE AND IT'S STUCK! YOU CANNOT GET OUT OF TROUBLESHOOTING MODE. YOU CANNOT SEE THE ACTUAL WEBSITE ON YOUR ACCOUNT. YOU CANNOT DO ANYTHING IN YOUR ACCOUNT. THE FRONT END OF THE WEBSITE LOOKS NORMAL WHEN YOU'RE NOT LOGGED IN. BUT THE BACKEND IS PRETTY MUCH LOCKED. YOU CANNOT DO ANYTHING. STAY AWAY FROM THIS PLUGIN. I MADE THE MISTAKE OF USING IT ON A LIVE WEBSITE FOR A BUSY BUSINESS. NOW I HAVE TO FIGURE OUT HOW TO SOLVE THIS PROBLEM. REMOVING THE FOLDER FROM THE PLUGINS DIRECTORY DOES NOT WORK!!! TROUBLESHOOTING MODE IS PRETTY MUCH PERMANENT AND WILL DESTROY YOUR WEBSITE. THIS PLUGIN SHOULD NOT BE AVAILABLE TO DOWNLOAD. STAY AWAY!!!!!!!!!!!!!!!!!!!!
2024 年 1 月 2 日 1 則留言
I can't believe anyone gave this plugin 5 stars. Troubleshooting mode will break your site. It disables ALL plugins and it says that this will only affect you and NOT your other site visitors but that is FALSE. When you disable troubleshooting mode all plugins remain inactive! There is NO WAY to revert or cancel this. Once you enter troubleshooting mode you are screwed. My entire site was broken and I had to scramble to reactive plugins one by one. I do not recommend this plugin for a live site. May as well go into Maintenace mode and troubleshoot without this plugin.
閱讀全部 161 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Health Check & Troubleshooting〉的開發相關工作。

參與者

〈Health Check & Troubleshooting〉外掛目前已有 30 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Health Check & Troubleshooting〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.7.0 (2023-08-06)

  • General: Improved styling inconsistency between the plugin and WordPress core.
  • General: Fixed an issue with plugin translations where language strings would get mixed when using third party language plugins, or a separate profile language.
  • Troubleshooting Mode: Fixed the URL used when disabling elements and having a subdirectory installation.
  • Troubleshooting Mode: Fixed a deprecation warning when disabling troubleshooting mode on PHP version 8.3 or higher.
  • Troubleshooting Mode: Added reference on how to troubleshoot as different users when testing scenarios.
  • Tools: Fixed integration with WPTide for the PHP Compatibility checker.
  • Tools: Added a viewer that will display debug log output when enabled.
  • Tools: Added a warning to the File Integrity tester if unexpected files are mixed in with WordPress core files.
  • Tools: Added a warning if sending emails is taking longer than expected.
  • Tools: Added beta feature toggle for those who wish to test new functionality that may not be fully ready yet.
  • CLI: Fixed the CLI commands, you can now wp health-check status to your hearts content!
  • Beta feature: Added a new beta feature, making it easier for non-technical users to grab screenshots of issues on their site, and share them.

v1.6.0 (2023-03-31)

  • Improved the visual aspects of the Troubleshooting Mode Widget.
  • Improved security by hardening Troubleshooting Mode actions with security tokens (nonces).
  • Added a new tool to check .htaccess rules (where applicable).
  • Added TwentyTwenty Three to the list of default themes.
  • Added option to install the latest classic (non Site Editor-focused) default theme if no default theme exists.
  • Added a new security confirmation prompt in Troubleshooting Mode, if a security token (nonce) value is either expired, or missing.
  • Added better documentation around reporting security concerns.
  • Fixed a bug where notices from previous Troubleshooting sessions would show up in a new session, which is just confusing.