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 版本降級。