初步評估

Acceptance test: fatal error in an active plugin on front-end pages; HTTP 500 on the homepage, the login page loads

配方 20261116-front-fatal-wpadmin · 最新一跑 2026-11-17 · 首次發布 2026-11-16 · 更新 2026-11-17 · Acceptance test

站主看到什麼

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-FPM500200
Apache + php-cgi (mod_cgid)500200
Apache + mod_php500200
nginx + PHP-FPM500200

每一跑的結局

日期(UTC)主機環境連線模式結局維修站版本備註
2026-11-16Apache + PHP-FPMSSHRecovered2.1.471
2026-11-16Apache + PHP-FPMFTPRecovered2.1.471
2026-11-17Apache + PHP-FPMWP adminRecovered2.1.479
2026-11-17Apache + php-cgi (mod_cgid)FTPRecovered2.1.474
2026-11-17Apache + php-cgi (mod_cgid)SSHRecovered2.1.474
2026-11-17Apache + php-cgi (mod_cgid)WP adminRecovered2.1.479
2026-11-17Apache + mod_phpFTPRecovered2.1.474
2026-11-17Apache + mod_phpSSHRecovered2.1.474
2026-11-17Apache + mod_phpWP adminRecovered2.1.479
2026-11-17nginx + PHP-FPMFTPRecovered2.1.474
2026-11-17nginx + PHP-FPMSSHRecovered2.1.474
2026-11-17nginx + PHP-FPMWP adminRecovered2.1.479

缺口與修在哪一版

結局不是修好的跑次,都在這裡:改了什麼、修在哪一版、重跑的日期與結局。

發現日主機環境連線模式改了什麼修在哪一版重跑
2026-11-16Apache + PHP-FPMWP adminIn 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.4722026-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 版本的結果可能不同。

初步評估 →