Fatal error in the active theme: HTTP 500 on the homepage and the login page
站主看到什麼
The site showed "There has been a critical error on this website" and wp-admin reported that the theme had been paused. On our Apache setups the login page also returned HTTP 500, so wp-admin could not be reached the normal way.
測試環境與弄壞後看到什麼
測試站:WordPress 7.1、PHP 8.3。下表是照配方弄壞之後,首頁與登入頁回的 HTTP 狀態。
| 主機環境 | 首頁 | 登入頁 | 備註 |
|---|---|---|---|
| Apache + PHP-FPM | 500 | 500 | |
| Apache + mod_php | 500 | 500 | |
| Apache + php-cgi (mod_cgid) | 500 | 500 |
每一跑的結局
| 日期(UTC) | 主機環境 | 連線模式 | 結局 | 維修站版本 | 備註 |
|---|---|---|---|---|---|
| 2026-11-06 | Apache + PHP-FPM | SSH | Recovered | 2.1.435 | |
| 2026-11-06 | Apache + PHP-FPM | FTP | Not recovered | 2.1.435 | The re-check did not pass, and the system issued the automatic recovery-fee refund (payment is simulated in the lab). |
| 2026-11-06 | Apache + mod_php | SSH | Recovered | 2.1.435 | |
| 2026-11-06 | Apache + mod_php | FTP | Recovered | 2.1.435 | |
| 2026-11-06 | Apache + php-cgi (mod_cgid) | SSH | Recovered | 2.1.435 | |
| 2026-11-06 | Apache + php-cgi (mod_cgid) | FTP | Recovered | 2.1.435 | |
| 2026-11-07 | Apache + PHP-FPM | SSH | Recovered | 2.1.436 | Re-test after the change below. |
| 2026-11-07 | Apache + PHP-FPM | FTP | Recovered | 2.1.436 | Re-test after the change below. |
缺口與修在哪一版
結局不是修好的跑次,都在這裡:改了什麼、修在哪一版、重跑的日期與結局。
| 發現日 | 主機環境 | 連線模式 | 改了什麼 | 修在哪一版 | 重跑 |
|---|---|---|---|---|---|
| 2026-11-06 | Apache + PHP-FPM | FTP | When the health check also listed overdue scheduled tasks, the recovery hit the same theme error while running them and the re-check failed. The recovery now handles this combination. | 2.1.436 | 2026-11-07 · Recovered |
| 2026-11-06 | Apache + PHP-FPM | 全部 | The health check report printed the theme and the login page as normal while both were failing. The report no longer prints those two lines when the site cannot be opened. | 2.1.436 | 2026-11-07 · Recovered |
對到的故障項目
相關錯誤文章
補充
WordPress is designed to email the site's admin address with a recovery-mode link when it catches a fatal error. We did not check for that email in these runs.
這些是我們測試主機上、某一版、某一天的紀錄,不是對任何網站結果的承諾;其他主機、PHP 與 WordPress 版本的結果可能不同。