WordPress 搬家之後,其中一個外掛啟用後出現:Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 4 in 的錯誤提示。

造成該問題的原因是 Zend Guard 5.1 更新了加密 PHP 檔案的演演算法來迎合 PHP5.3 新版本支援,用 Zend Guard 老版本加密過的 PHP 檔案在 PHP5.3+ Zend Guard Loader 的環境下都無法正常瀏覽,會報出文章開頭的錯誤。
也就是說 php 版本的不同,配置的 zendguardloader 也不一樣,導致出現了這樣的問題。解決辦法是重新上傳未加密過的 php 程式或者 php 版本降級。