Php 8.0 And 8.1 Support

Are numerous examples to mention just a few:

  1. see here I installed cscart_v4.15.2_b2b, admin panel not shown properly

  2. I upgraded the cs cart and the website was down many days, the upgrade process went well
    My website was down 2 weeks, and the support didn t manage to see that the issue was with cs cart not server. it took 2 weeks to solve it
    On Monday, February 21, 2022, 02:03:47 PM GMT+2, CS-Cart.com sales@cs-cart.com wrote:

Thank you for your patience. I apologize for the delay in answering.

The issue with image thumbnails that caused such error:

ErrorUnable to create thumbnail for file "/home/mysite/public_html/images/detailed/8/image.png": Get operation failedis related to ImageMagick library.
I have switched the default library to GD by replacing the line:
'image_resize_lib' => 'auto', // library to resize images - "auto", "gd" or "imagick"
with the following:
'image_resize_lib' => 'gd', // library to resize images - "auto", "gd" or "imagick"
in the config.local.php file of your installation. Now the problem is not reproduced, please check it.
I apologize for misleading you with the library version, have mixed up two different things.

The problem was caused by the selected format of image thumbnails. WebP was selected as the default format, however it is not supported by ImageMagick. Please see the list of supported formats at the attached screenshot. On the other hand, GD does have WebP support.

I have set 'image_resize_lib' back to 'auto' in the config.local.php file. Then I have changed the Thumbnail format to same as source on the Settings > Thumbnails page, and now the problem is not reproduced.

If you want to use WebP as the default image format, you should contact the hosting team on the possibility to enable the WebP support for ImageMagick library. Or you can switch back to using GD library instead.

We have examined the problem, it was related to the large size of the uploaded logo and the bug in the current CS-Cart version.
We have fixed the bug in your installation, you can find the details in the attached diff file.
Sincerely yours,
Ekaterina Strunnikova
Customer care team
Mar 6, 2022, 21:28

Thank you for the reply.

  1. This issue requires detailed examination at the server with this issue. Right now I cannot link this one to the PHP version directly, since it could be incorrect configuration of the specific version.
  2. I have found this ticket in the Help Desk, as I can see, it is not related to PHP version anyhow.
1 Like

see here the errors I am geting now, when using php 8.0.27

[22-Jan-2023 10:04:32 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[22-Jan-2023 10:05:23 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[22-Jan-2023 13:17:46 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[22-Jan-2023 17:15:38 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[22-Jan-2023 21:36:50 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[23-Jan-2023 09:43:32 PHP Deprecated:  Required parameter $object_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:32 PHP Deprecated:  Required parameter $product_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:34 PHP Deprecated:  Required parameter $object_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:34 PHP Deprecated:  Required parameter $product_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:35 PHP Deprecated:  Required parameter $object_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:35 PHP Deprecated:  Required parameter $product_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:36 PHP Deprecated:  Required parameter $object_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:36 PHP Deprecated:  Required parameter $product_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:37 PHP Deprecated:  Required parameter $object_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 09:43:37 PHP Deprecated:  Required parameter $product_name follows optional parameter $object_type in /home/mydomain/public_html/app/addons/seo/schemas/exim/seo.functions.php on line 33
[23-Jan-2023 13:55:43 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[23-Jan-2023 17:10:44 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[23-Jan-2023 17:11:54 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[23-Jan-2023 17:14:41 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[23-Jan-2023 17:15:43 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[23-Jan-2023 17:22:06 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76
[23-Jan-2023 17:28:25 PHP Warning:  math: illegal characters in /home/mydomain/public_html/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76

What is the fix for this?

Thanks for the reply.

PHP Warning:  math: illegal characters

This one error is most possibly related to third party theme used in your store. I am unable to reproduce it.

The following error entry:

PHP Deprecated:  Required parameter

I am confirming this. In order to fix it in your installation, please apply the attached .diff file.
0d9ce078cbc0c2444437dd4bf2803251693af144.diff (997 Bytes)

I have notified the developers regarding this issue.

2 Likes