KirkM Posted April 21 Share Posted April 21 Searched around and didn't see much about CC compatibility with the latest php version 8.1. Just a single post back in 2021 or so about problems with php 8.0 breaking CC. What's happening with CC and php 8.1? I am using CC 6.4.4 with php 7.4 right now (CC still recommends using php 7.3, which is now outdated), but all my data systems and some client wordpress sites are moved to php 8.1. CC is the only thing hanging me up from having 8.1 as the only php version on my server. Any info on a timeline for this would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 22 Share Posted April 22 (edited) I am fairly confident CC645 will have all of its codebase updated for PHP8.0+. However, there is still the issue of Smarty 3. The version shipped with CC644 is not PHP8 compatible. Perhaps, CC645 will ship with Smarty 4 - after full testing, of course. Ok, well, I see CC645 has been released. Edited April 22 by bsmither Quote Link to comment Share on other sites More sharing options...
KirkM Posted April 22 Author Share Posted April 22 Thanks Brian. Do you know if Smarty 4 in CC645? Obviously, if a single third-party component isn't compatible, then the whole thing isn't. I run PHP as a PFM Application per domain so I will keep 7.4 for the CC clients and wait for the plugins to catch up if they haven't yet. It would be great if Al specifically announces when the CC version is released that is tested compatible with PHP 8.1. (wink, wink, nudge, nudge).. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 22 Share Posted April 22 CC645 does not have Smarty 4. But I will experiment with a PHP 8.1 environment, swap out Smarty 3 with Smarty 4, and trial CC645. I do know that there are some issues in the Github related to PHP 8 that are still open. Quote Link to comment Share on other sites More sharing options...
KirkM Posted April 22 Author Share Posted April 22 That would be very generous of you to do. PHP 8 has only been out since the very end of November 2020, so that's just under 18 months. Lots of changes and depreciated / removed functions and conventions so it will understandably take a while for everyone to clean their code. All my stuff works fine on 7.4 too, I just am a bit impatient to work with some of the 8.1 improvements. I have it installed in my MAMP Pro testing server and develop only with that to future-proof as far out as possible so it is important that I have it on my production server, which I do for the domains I use. For CC, I can just leave it on 7.4 until all is ready and then I will clean 7.4 off the server. As always, thanks for your help and response Brian. It is greatly appreciated. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 24 Share Posted April 24 After analyzing the code, I find that a recent change in ini.inc.php will test for the version of PHP it is running under. The test will have PHP die with the message that CubeCart is not ready for PHP8+ and recommends that PHP7.4 be used. So, right from the start, a stock install of CC645 is a 'no-go' on PHP8+. But, I will defeat that kill switch, swap out Smarty 3 for Smarty 4, and see what happens under PHP 8.1. Quote Link to comment Share on other sites More sharing options...
KirkM Posted April 24 Author Share Posted April 24 My guess: Boooooom! Really, you don't have to go through all that. I don't want to hack CC just because I am a type A PITA. I can wait for everything to catch up in a future release... I swear I can... Really... ahhhhhhhhhhhh! Quote Link to comment Share on other sites More sharing options...
Tony Posted April 25 Share Posted April 25 21 hours ago, KirkM said: Really, you don't have to go through all that. I don't want to hack CC just because I am a type A PITA. But at some point, CubeCart will need to be supported on PHP 8 soon, so all of these info will be a bonus to the development of CubeCart. 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.