Acceptance test: fatal error in an active plugin on front-end pages; HTTP 500 on the homepage, the login page loads
站主看到什麼
Set up on a WP119 test site: an active plugin was modified so that loading any front-end page called a function that does not exist, a PHP fatal error. The homepage returned HTTP 500. The login page and wp-admin still loaded, so the test also ran in WP admin mode.
出處:驗收測試(在 WP119 測試站上設定的故障),沒有論壇帖。每種主機環境與連線模式只列最新一跑。
測試環境與弄壞後看到什麼
測試站:WordPress 7.1、PHP 8.3。下表是照配方弄壞之後,首頁與登入頁回的 HTTP 狀態。
| 主機環境 | 首頁 | 登入頁 | 備註 |
|---|---|---|---|
| Apache + PHP-FPM | 500 | 200 | |
| Apache + php-cgi (mod_cgid) | 500 | 200 | |
| Apache + mod_php | 500 | 200 | |
| nginx + PHP-FPM | 500 | 200 |
每一跑的結局
| 日期(UTC) | 主機環境 | 連線模式 | 結局 | 維修站版本 | 備註 |
|---|---|---|---|---|---|
| 2026-11-16 | Apache + PHP-FPM | SSH | Recovered | 2.1.471 | |
| 2026-11-16 | Apache + PHP-FPM | FTP | Recovered | 2.1.471 | |
| 2026-11-17 | Apache + PHP-FPM | WP admin | Recovered | 2.1.479 | |
| 2026-11-17 | Apache + php-cgi (mod_cgid) | FTP | Recovered | 2.1.474 | |
| 2026-11-17 | Apache + php-cgi (mod_cgid) | SSH | Recovered | 2.1.474 | |
| 2026-11-17 | Apache + php-cgi (mod_cgid) | WP admin | Recovered | 2.1.479 | |
| 2026-11-17 | Apache + mod_php | FTP | Recovered | 2.1.474 | |
| 2026-11-17 | Apache + mod_php | SSH | Recovered | 2.1.474 | |
| 2026-11-17 | Apache + mod_php | WP admin | Recovered | 2.1.479 | |
| 2026-11-17 | nginx + PHP-FPM | FTP | Recovered | 2.1.474 | |
| 2026-11-17 | nginx + PHP-FPM | SSH | Recovered | 2.1.474 | |
| 2026-11-17 | nginx + PHP-FPM | WP admin | Recovered | 2.1.479 |
缺口與修在哪一版
結局不是修好的跑次,都在這裡:改了什麼、修在哪一版、重跑的日期與結局。
| 發現日 | 主機環境 | 連線模式 | 改了什麼 | 修在哪一版 | 重跑 |
|---|---|---|---|---|---|
| 2026-11-16 | Apache + PHP-FPM | WP admin | In WP admin mode, links in posts and pages that pointed to the site itself and started with https:// came back as http:// after the restore; the site address uses http://. When it can read the site address from the site settings, WP admin mode now leaves links in the other scheme as they were. | 2.1.472 | 2026-11-17 · Recovered |
對到的故障項目
補充
The 2026-11-16 WP admin run on Apache + PHP-FPM ended in "Recovered"; comparing posts and pages before the case opened and after the restore found the changed links. As set out in Method and definitions, that run is not listed and its gap row stays. Before 2.1.472, WP admin mode used the same code on every server setup.
這些是我們測試主機上、某一版、某一天的紀錄,不是對任何網站結果的承諾;其他主機、PHP 與 WordPress 版本的結果可能不同。