{"id":1113,"date":"2013-10-10T05:35:16","date_gmt":"2013-10-10T11:35:16","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=1113"},"modified":"2018-10-04T00:33:51","modified_gmt":"2018-10-04T06:33:51","slug":"php-fatal-error-incompatible-file-format-the-encoded-file-has-format-major-id","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/php-fatal-error-incompatible-file-format-the-encoded-file-has-format-major-id\/","title":{"rendered":"PHP Fatal error: Incompatible file format: The encoded file has format major ID"},"content":{"rendered":"<p><b>PHP Fatal error<\/b>: 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<\/p>\n<p><b>PHP Fatal error<\/b>: 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<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<blockquote><p>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.<\/p>\n<p>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.<\/p><\/blockquote>\n<p>To make things clear, Re-encoding can only be performed on the PHP open source files, not on already encoded files.<\/p>\n<p>If you require help, c<a href=\"https:\/\/www.supportpro.com\/requestquote.php\">ontact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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:&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-1113","post","type-post","status-publish","format-standard","hentry","category-technical-articles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":5,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"predecessor-version":[{"id":3136,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1113\/revisions\/3136"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}