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