11thhour Posted February 4, 2016 Share Posted February 4, 2016 I just checked my site and got this message. Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 6 in /home/eleve8/public_html/index_enc_zend.php on line 0 The web host (Lunarpages)is telling me, This issue is due to your website being incompatible with the newer version of PHP your server has been updated to, which is PHP version 5.5.31. I'm running CubeCart V4 Any Ideas as what I can do? I can't even log in to the control panel to make an upgrade. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 4, 2016 Share Posted February 4, 2016 Please download the latest CC4 package from Cubecart.com Downloads page. Replace only the files index.php and admin.php on your site. Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 5, 2016 Author Share Posted February 5, 2016 bsmither, Thanks for trying to help. It's been a while since I set this up and I'm unsure how I replace the files. Is that done through the host control panel? Thanks again! Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2016 Share Posted February 5, 2016 Your hosting control panel should have an FTP feature where you can navigate to your site's files and transfer those two files from your computer to your site. Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 5, 2016 Author Share Posted February 5, 2016 Thanks! I'm going to see if the host will do this for me. You think those two files will make it run on their upgraded PHP 5.5.31server? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2016 Share Posted February 5, 2016 Yes. On the other hand, you may find that you will have another error message, one about some function being deprecated. That's an easy fix as well. Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 5, 2016 Author Share Posted February 5, 2016 bsmither, thanks again for your help. Asking the host to help with what you told me I got this response from them. It seems to have worked. Investigating the issue further, I found that I was able to resolve the 'Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 6 in /home/eleve8/public_html/index_enc_zend.php on line 0' error by changing : $glob['encoder'] = 'zend'; $glob['encoder'] = 'ioncube'; in : public_html/includes/global.inc.php. That gets your website to show part of a page. However, the following warning is displayed at the top of the page : Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/eleve8/public_html/classes/db/db.php on line 45 To stop this deprecation warning displaying, I changed : error_reporting(E_ALL ^ E_NOTICE); to error_reporting(4339); in : public_html/ini.inc.php . Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2016 Share Posted February 5, 2016 We strongly suggest that you replace the files as described above. The encoded files are where licensure enforcement takes place. CubeCart is now licensed under GPL3 (meaning, "open source") and any licensure enforcement has been removed. In fact, in just a few days from now, when CubeCart phones home to validate the license, there will be nothing to answer. Your store will cease to function. You are strongly urged to replace those two files. For a more human-readable statement to suppress the deprecated notices, we recommend:error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED)); Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 5, 2016 Author Share Posted February 5, 2016 bsmither, I'm not understanding what the host is telling me. First they were telling me my site was down because it wasn't using PHP 5.5.31 Now that I can see my CC control panel it is using PHP 5.5.31 What they did to fix it I'm not sure of . Are you saying I need to replace those files because of something they are doing? I would rather not mess with files myself if there is something they (host) need to do to fix this correctly. Thanks for the help! Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2016 Share Posted February 5, 2016 It's nothing what your host is doing, although having upgraded PHP, so that ZEND no longer worked, exposed the fact that your site still uses ZEND-encoded files. Please read this announcement. You must perform a bit of maintenance so that your site no longer uses encoded files. What your hosting company did was to simply change from using one of the two encoded files to using the other encoded file. But your site is still being enforced to follow CubeCart licensure. And that is what must be solved. Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 6, 2016 Author Share Posted February 6, 2016 Quote OK bsmither thanks for the link, I hadn't seen it. I just figured out how to replace the two files and was successful. So far the site seems to be error free. Thanks again for all your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.