Home >Topics >Pagoda Panel >Solutions to the 'Fatal error: Incompatible file format' error reported on the Pagoda Panel migration website

Solutions to the 'Fatal error: Incompatible file format' error reported on the Pagoda Panel migration website

藏色散人
藏色散人forward
2021-03-18 17:22:132979browse

The following tutorial column of Pagoda Panel will introduce to you how to solve the "Fatal error: Incompatible file format" error reported on the Pagoda Panel migration website. I hope it will be helpful to friends in need!

Solutions to the 'Fatal error: Incompatible file format' error reported on the Pagoda Panel migration website

Help one 2 days ago The customer migrated the website to the Pagoda panel, and the PHP version of his website was 5.2.
Three steps to migrate a website: migrate website files, import database, and finally modify the configuration information of the database link file (database name, database user name, and database password. After all, the configuration information of the newly created database will be different from the original one. ).
Domain name binding and parsing, and then after completing these three steps, when accessing the website, it prompts:
Fatal error:Incompatible file format:The encoded file has format major ID...
I thought it was at first The account and password were incorrect when modifying the database configuration file, or spaces were accidentally left when modifying. Then re-create the site, and directly set the database information to be the same as the original when creating the site (so there is no need to modify the configuration file). When the website of 江平鸟host is migrated to Pagoda, it will be It's very convenient to do it this way.
Solutions to the Fatal error: Incompatible file format error reported on the Pagoda Panel migration website

But when I visited the website again after fixing it, I still had the same problem. After searching on the Internet, some said it was a configuration file problem, and some said it was a PHP version problem. Since it is not a problem with the configuration version, I tried to change the PHP version (the original PHP of the website is 5.2, and the new pagoda site PHP is 5.4). I changed the PHP version to 5.2, and when I visited it again, the website was normal.
Solutions to the Fatal error: Incompatible file format error reported on the Pagoda Panel migration website

In fact, it is not just this problem. When migrating a website or migrating a website from a Windows 2003 system to a Windows 2008 system, the PHP version issue must be considered.

The above is the detailed content of Solutions to the 'Fatal error: Incompatible file format' error reported on the Pagoda Panel migration website. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete