PHP Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 4 in /home/user/public_html/swift.php on line 0
PHP Fatal error: Incompatible file format: The encoded file has format major ID 2, whereas the Loader expects 4 in /home/user/public_html/swift.php on line 0
Have you seen such errors in your site after server migration or server upgrade or php upgrade. Yes, this seems to be haunting a lot of people. The reason for this error is simple.
In simple words, Your Site is incompatible with the current version of Zend loader. This error comes up when you have encoded your site (using zend encoder) for a lower PHP Version and youre trying to run it in a higher PHP version.
Incompatible file format means that you have tried to execute PHP 5.2 encoded file on PHP 5.3 runtime or a PHP 5.3 encoded file on PHP 5.4. In this case, you have the following options.
1. Downgrade the PHP version in the server to the required lower version. This is not possible in a shared server or in cases like, when you are having sites that work only on latest PHP version, in the same server.
2. Re-encode the PHP files to work with the latest PHP version. For encoding options, Zend Guard has a GUI based on XML parser engine, and command line encoders for automation and choice of use.
To make things clear, Re-encoding can only be performed on the PHP open source files, not on already encoded files.
If you require help, contact SupportPRO Server Admin