PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
Just wanted to have a list so that people who are moving Zen Cart 1.5.5 sites to PHP 7.1 can do these changes by hand before Zen Cart 1.5.6 is released.
Zen Cart 1.5.6 can be found here: https://github.com/zencart/zencart/tree/v156
You can pull a copy of this branch and compare to your local files to find the changes you need.
includes/classes/currencies.php
includes/classes/order.php
includes/functions/functions_taxes.php
includes/classes/categories_ul_generator.php
Linkpoint is no longer operational, but ... if you are somehow still using linkpoint, remember to change $$var references to ${$var} in
includes/modules/payment/linkpoint_api.php
Re: PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
You will also want to check your template for lines that look like this:
$list_box_contents = '';
they should probably be
$list_box_contents = array();
(Stricter PHP7 checks will report the former as a warning.)
Re: PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
I do appreciate your post but found orders.php to be more changed than it seems php7 would warrant and I have no earthly idea what is pertinent. A hint would be appreciated...
Re: PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
Hmm...you may not need the change for includes/classes/order.php - still testing.
Re: PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
Re: PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
From a post I made back in January: PHP 7.2 vs v155f
Re: PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
Good reminder. Use PHP 7.1, not PHP 7.2!
Re: PHP7 Fixes for Zen Cart which are built in to 1.5.6 already
Quote:
Originally Posted by
swguy
Good reminder. Use PHP 7.1, not PHP 7.2!
For v1.5.5f, yes.
And, for clarity: Anyone using PHP 7.0 should just switch to PHP 7.1. There's no need to use 7.0 anymore, and (almost) everything that works on PHP 7.0 will work equally on PHP 7.1
ZC v1.5.6 will support PHP 7.2 out-of-the-box when it's ready for release.