Page 2 of 8
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Fri Jun 18, 2021 3:50 pm
by khnaz35
Just setup a demo website for this OC version and at a fresh install run the google page speed test.
The results looks awesome!!
Now will install Journal V 3.2 beta as well to make test and report error to them as well. Looks like finally Journal also listen to OC_users compalints and start work in same directions.
https://www.journal-theme.com/beta-v32/
Journal 3.2 is the biggest update for Journal since Journal’s first launch. We have recoded the framework almost entirely for much better integration with the core Opencart system and added radically improved performance and usability features both in the admin and storefront.
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Fri Jun 18, 2021 7:50 pm
by maboku
I am on php7.4 hosted on AWS Lightsail. After installing the new update from MaxD, i encounter the following error when enabling one of my addons in the admin panel:
Fatal error: Uncaught Error: Class 'Twix_Node_Expression_Binary_NotIn' not found in /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php:2793 Stack trace: #0 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(2378): Twix_ExpressionParser->parseExpression() #1 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(4127): Twix_TokenParser_If->parse() #2 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(2301): Twix_Parser->subparse() #3 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(4127): Twix_TokenParser_For->parse() #4 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(2389): Twix_Parser->subparse() #5 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(4127): Twix_TokenParser_If->parse() #6 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(4060): Twix_Parser->subparse() #7 /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php(568): Twix_Parser->parse() #8 /opt/bitnami/apache in /opt/bitnami/apache/htdocs/system/library/template/twix_compile.php on line 2793
anyone with an idea what could be wrong?
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Sat Jun 19, 2021 6:45 am
by MaxD
Updated the distribution, now if Twix fails for some template, it will silently fallback to official Twig.
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Sat Jun 19, 2021 1:57 pm
by maboku
What causes the upgrade page to be blank? Only happens when I use the distribution but with official OC no issues. No error codes thrown.
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Sat Jun 19, 2021 6:09 pm
by MaxD
maboku, the upgrade function is blocked for the sake of no need to delete "install" directory.
If you have Opencart 3.0.3.7, just overwrite all files except config.php and admin/config.php
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Sat Jun 19, 2021 10:24 pm
by maboku
Noted with thanks...
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Sat Jun 19, 2021 11:52 pm
by LVL91
MaxD wrote: ↑Thu Jun 17, 2021 10:43 pm
LVL91, I don't know yet if I will post this as OCMod. Still waiting for some reaction from people if they need it at all )
Meanwhile all this optimizations are included into my
OpenCart Lightning accelerator.
Hi MaxD. I actually haven't heard about your Lightning module until yesterday when someone else pointed me to that. I am used to Nitropack for my older OC 1.5.6, but now I need to make a decision for the upgraded OC 3.0.3.7. Your caching module seems to be the perfect choice, but I do have some specific questions. I'll send you a support request via the OC marketplace for this.
As for the updated event-related file, I got a very small error in the admin panel with a specific module only. It's probably the badly written module, but perhaps it's affecting other functionality as well, perhaps you can fix it. I'll put that in the support e-mail as well so this all stays on-topic.
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Tue Jun 22, 2021 3:45 am
by cata77
Hi Max,
I intend to try your distribution, but I think it contains only the changes. For a fresh install I need to take the original opencart distribution and put your changes over that. Is my assumption correct?
Best regards,
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Tue Jun 22, 2021 3:52 am
by MaxD
cata77, not right. It is full distribution tailored for faster install without need to make any additional moves.
How to install?
- unZIP to destination folder
- open your site in browser (use HTTPS if supported)
- enter database info and new shop admin log/pass
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Tue Jun 22, 2021 5:25 am
by cata77
Hi Max, I just downloaded the archive again and has only ~2Mb. Please see the content of archive here:
http://prntscr.com/168ftet.
Of course, I tried to install in a folder, as you suggested , but it not work (Forbidden -You don't have permission to access this resource).
If I try the "original" opencart distribution it works properly.
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Tue Jun 22, 2021 5:29 am
by MaxD
cata77, oh, you are right!
Uploaded the correct archive, please download it again.
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Tue Jun 22, 2021 5:57 am
by cata77
It looks ok now, I had to clear the browser cache in order to see the latest version. Thank you
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Sun Jun 27, 2021 7:42 am
by nickpapoutsis
MaxD, will I see any improvements if I use this for a website that's already using the latest version of Lightning?
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Sun Jun 27, 2021 8:49 am
by MaxD
nickpapoutsis, Lightning includes all this optimizations already )
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Fri Jul 30, 2021 5:00 am
by FallingUp
MaxD wrote: ↑Thu Jun 10, 2021 9:33 am
I have added speed measurements results )
For the test two fresh installations was taken - this one and official OpenCart. Page generation time was measured (without compression and output). Tests show following results:
Homepage:
60 ms vs
140 ms
Admin Dashboard:
40 ms vs
70 ms
After that Journal 3 template was installed with demo data.
Journal 3 Homepage:
230 ms vs
520 ms
Hi Max,
Is 3.0.3.7 with php8 really faster than 3.0.2.0 with php7.3?
Will the upgrade break most extensions?
Thanks
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Fri Jul 30, 2021 5:41 am
by MaxD
Official Opencart 3.0.3.7 is not faster than Opencart 3.0.2.0.
And PHP8 is not faster than PHP7.3.
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Fri Jul 30, 2021 5:51 am
by FallingUp
Thank you Max
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Wed Aug 04, 2021 8:21 pm
by cata77
Hi Max,
maybe is a off-topic and newbie question, but what did you used for measuring the page generation time? I want to make the same tests on my site.
Thanks
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Thu Aug 05, 2021 11:33 am
by MaxD
cata77, just used PHP for that measurements.
Add to the beginning of
index.php:
To the
system/library/response.php after
add
Code: Select all
global $start; $ms = round((microtime(true) - $start)*1000); file_put_contents('ms', $ms.' ', FILE_APPEND); $m = explode(' ',trim(file_get_contents('ms')));echo $ms.' ms, average <b>'.round(array_sum($m)/count($m))."</b> ms (".count($m).')'; exit;
Re: OpenCart 3.0.3.7 2x faster and with PHP 5.4 to PHP 8 support
Posted: Thu Aug 05, 2021 12:57 pm
by Majnoon
MaxD wrote: ↑Thu Aug 05, 2021 11:33 am
cata77, just used PHP for that measurements.
Add to the beginning of
index.php:
To the
system/library/response.php after
add
Code: Select all
global $start; $ms = round((microtime(true) - $start)*1000); file_put_contents('ms', $ms.' ', FILE_APPEND); $m = explode(' ',trim(file_get_contents('ms')));echo $ms.' ms, average <b>'.round(array_sum($m)/count($m))."</b> ms (".count($m).')'; exit;
Just a question and where this output will be shown?