XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
By pure chance, saw that PHP 8.0 support was on a previous 'road map' for XC4. There's no such 'road map' for XC5 (that's available online anyway) so raising the question about future support for PHP 8.0 by XC5? Here is the PHP Support Schedule for reference. The last change for XC5 in terms of PHP release support, was almost kept as a secret :D/ Only found out about it via posts by other users on this forum. These were other users that had made the switch over to PHP 7.4.* and tested things themselves, in advance, then bug fixes were applied by XC and it became usable - but still via knowledge by accident mainly, not a timely official announcement as expected. New forum format, new approach to notifications by XC? Fingers crossed then!
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Thanks for this question!
There is no ETA on this big change yet. 5.4.2.x won't be adapted to PHP 8 for sure. The main issue is that a lot of libs don't support PHP 8 yet. Moreover, some of them have such plans (adapting), and some of them are going to be dropped (as a result, forks have to be developed and adapted). Some of the libs are going to support only the "upper" versions like >7.3 so all the previous ones won't be compatible. Anyway, I will always post a "New 5.N.N.N version released" with a changelog link so you can see all the included changes/fixes/improvements. |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Quote:
Quote:
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Thank you for your feedback. I've shared this with our product and engineering teams.
I'd also be happy to help look into the status of any open ticket if you can share a ticket number. |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Relevant things to note: 1) After taking people's money willynilly for "support" XC haven't actually provided anything at all since 1/11/21. Have look yourself: https://devs.x-cart.com/changelog/ Are they still asleep? 2) Even better, XC5.4.1.* now has the most - ever - number of point releases of any XC5 version and the XC5.4.2.* mentioned above is, wait for it, still "...conspicuous by it's absence" =D> 3) PHP Support? XC are hanging on to XC7.4.* like ia drowning child, yet, as you can clearly see here: https://www.php.net/supported-versions.php It has already lost active support, PHP 8.0.* is already, NOT the current stable release because PHP 8.1.* is... Hello XC are you aware that self-hosted customers still exist? AFAIK Misrepresentation is still a criminal act. Class-action litigation can't be that far away... can it? :???: |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Actually it would be nice if X-Cart supported php 7.4 before talking about 8.0.. I can't run X-Cart with php 7.4. For example, if I write something like https://devs.x-cart.com/basics/working_with_x-cart_externally.html then I get the following error
Code:
[Thu Feb 03 16:39:23.906710 2022] [proxy_fcgi:error] [pid 1382704] [client 192.168.1.1:46168] AH01071: Got error 'PHP message: PHP Deprecated: Required parameter $message follows optional parameter $dbURL in path-to-xcart/Includes/functions.php on line 818PHP message: PHP Fatal error: Declaration of Doctrine\\DBAL\\Driver\\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in path-to-xcart/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 70' |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Quote:
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
if you are on 5.2.x as your signature suggest or even 5.3.x you cannot run it on PHP 7.4. You can't run it on MySQL 8 either. And no one will touch these old versions to make them compatible. PHP 7.4 and MySQL 8 work only with XC 5.4.x. The error you have posted is most likely with the 3rd party framework. Considering the newest Symfony version requires PHP 8.0.2+ and a lot of the other 3rd party software XC uses are ready for PHP 8 yet XC 5.4.x is not I can assume they will not do anything about it. So 5.4.1.x will stay as is and maybe maybe 5.4.2 will be PHP 8 ready, or maybe 5.5.x and above only. When PHP 8 is being deprecated... maybe |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Oh, sorry, my signature is about our last production store, but I have bunch of different developement stores including one version 5.4.1.34 running with latest mariadb and php 7.3 and 7.2. and I can't run them with php7.4.
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
5.4.1.x has no problems with php 7.4 and mysql 8. If you have 5.4.1.x not being able to run on it then it is some 3rd party modules or something else on that server/cart that's the problem.
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Thanks, as a matter of fact I have managed to run without a problem another dev store with php 7.4, so it is not php configuration either. So all I need to do is to figure out which add-on is the culprit...
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
You turn them all off, switch php and start turning on one by one
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Thank you, that is what I was about to do when ... our "free license" got transformed to "trial license" that expired :cry: again. I thought this issue was solved long time ago... |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
This issue was never fixed and will not be in this or earlier versions. Eventually next major version will have different way of calling the mothership to check the license but who knows. |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
For some reasons, I was seeing "trial" on service.php page but on admin.php I still saw "free", and it didn't keep my dev stores from operating correctly. And I stopped seeing "your trial license expires in N days". So I presumed the problem was gone. But now I see that my "trial license expired". Too bad that we will have to migrate to another e-commerce platform now that our production store was almost ready... |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Somehow all problems are gone... Well, thank you very much for help anyway. |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Actually not... It turned out that
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Bad news for me, my hoster is forcing me to PHP 8 next month 8O |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
PHP 7.4.x security support ends in a month - https://www.php.net/supported-versions.php
XC5 at its current stage is not PHP 8 ready and the new XC5 is not even close to being released (I suspect) and even if somewhat ready it will be a major upgrade. So lots of breaking changes, waiting on 3rd party modules, bugs, etc. You should get new host right of way if the current one won't allow you to continue using PHP 7.4.x. |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Quote:
Steve really spoke this into existence. Good job Steve! :wink: https://www.x-cart.com/blog/technology-upgrade.html |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Initial review shows most if not all 3rd party modules will require complete overhaul/rewrite. This doesn't sound like a major upgrade. More of a new XC5 platform.
The bad news here is 5.5.x "is out of beta" and we did not have a chance to adapt anything to it while it was in beta. Now any new XC5 installations will rely on QT/SL modules only. Any existing XC5 stores will not be able to upgrade for many months. I have over 30 modules. There is no way all of them will be 5.5.x ready soon especially with holidays around the corner. Maybe thought this is a good thing - it will give a chance for the bugs to be worked out before any of the existing stores move to upgrade. |
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
Since most of my vital/best mods are made by you, I won't be upgrading anything soon. Do keep us abreast of your status in upgrading if possible.
|
Re: XC5 - Support for PHP 8.0 & subsequent PHP 8.* releases
so is 5.5 using php 8.x?? I just updated my xc4 sites to php8 though BCSE (great support) and am wondering status as we have a xc5.4 site still.
|
All times are GMT -8. The time now is 06:48 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.