_zaphod77_ Developer من United States عضو منذ مارس 2025 _zaphod77_ 2 مايو 2025 06:09 Ever since the move to vmod instead of vqmod, php 5.6.40 has never worked. this code fails to compile $tmp_file = stream_get_meta_data(tmpfile())['uri']; file_put_contents($tmp_file, "<?php" . PHP_EOL . $upgrade['script']); // Exceute upgrade in an isolated scope (function() { include func_get_arg(0); })($tmp_file); that sort of anonymous function doesn't work before php 7.0. i tried to rewrite it to $isolatedInclude = function ($file) { include $file; }; $isolatedInclude($tmp_file); but doing that in both spots simply results in the cart hanging up, and it spitting out another warning over and over inside the main admin page about another anonymous function inside of lib_language
tim Founder من Sweden عضو منذ مايو 2013 tim 2 مايو 2025 13:56 Oh, I was unaware of that. I think it's easiest if you do this: call_user_func(function($file) { include func_get_arg(0); }, $tmp_file); or this: include $tmp_file; How come you are still on 5.6 now that there was a major performance gain with 7.x and PHP is on 8 now? https://servebolt.com/articles/wordpress-5-0-php-7-2-vs-php-7-3-performance-and-speed-benchmark/
_zaphod77_ Developer من United States عضو منذ مارس 2025 _zaphod77_ 2 مايو 2025 17:05 because another live site with a shopping cart with a crapton of custom php code is using mysql extension in said code instead of mysqli extension, honestly. You also can't use string as a type hint before 7.0 https://stackoverflow.com/questions/4103480/how-to-resolve-must-be-an-instance-of-string-string-given-prior-to-php-7 this is responsible for the warnings from lib_langauge.
tim Founder من Sweden عضو منذ مايو 2013 tim 2 مايو 2025 23:00 Your control panel should allow you to enable different PHP extensions by PHP version, and the ability to assign specific PHP versions to specific folders or domains.
vilaiporn LiteCart Fan من Thailand عضو منذ أغسطس 2017 vilaiporn 3 مايو 2025 02:22 Hello, if you have LiteSpeed add/modify in the folder the .htaccess file: <FilesMatch ".(?:html|php)$"> SetHandler application/x-lsphpXX </FilesMatch> XX = php version 56, 73... where 56 is 5.6, 73 is 7.3
_zaphod77_ Developer من United States عضو منذ مارس 2025 _zaphod77_ 3 مايو 2025 03:27 that assumes you also have working mod_lsapi, and all of it's requirements.
valdeo LiteCart Fan من Bulgaria عضو منذ ديسمبر 2017 valdeo 15 أغسطس 2025 16:01 My LC 2.5.4 doesn't work on PHP 8 - server error 500. I'm trying with PHP 8.3 and 8.4. Should it work? Any suggestions?