Page 1 of 1
open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 10:03 am
by rspector
Good evening,
I've been trying to solve issues with my open cart 3.0 site. It is very slow to load, I have run checks with gtmetrix and the only thing left is java parsing. It appears to be slow on the server side, once the data starts to transmit to the browser it is very fast. I'm using the store front theme with very few products and categories. I was wondering if someone would be willing to give it a look and provide me with some suggestions. The url is
http://www.u-marq.us . One thing i find strange is I have to set the php memory limit at -1 (no limit) for the page to function, even with that I get random 500 errors and page not found issues. I have tried turning off extensions one at a time in the hopes of isolating the problem with no luck.
Thank you
Rob Spector
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 12:19 pm
by letxobnav
have your host check your server settings and forget php for a minute.
your server responds in 340ms on http (which is not great but could also be latency between me and you) then 301 redirects to https which takes 7.5 seconds.
That could be anything, dns, server, php, db, network.
However, your other assets like css,js and images are also slow, almost 1 second each and that has nothing to do with php or DB.
you could test with https (ssl) off to see if it is ssl or in general.
and if you use ssl, change both servers in both config.php files to https as you are now contstantly putting http links in your html which are redirecting from to https.
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://Your domain');
// HTTPS
define('HTTPS_SERVER', 'https://Your domain');
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 4:12 pm
by letxobnav
you are also mixing
www.domain and non-
www.domain which make your fontawesome icons not appear.
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 7:35 pm
by IP_CAM
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 10:29 pm
by rspector
Hi again Guys,
Thank you for the suggestions. I have changed the config.php's and now everything is using https. Not much of an improvement. The 500 errors continue to randomly appear. I believe it is a memory usage issue as per my original post. Even with the correct code in my .htcaccess file I cannot get the website to specify what is causing the error. Any other suggestions you could give me would be greatly appreciated.
Thank you!
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 10:48 pm
by letxobnav
check your server error log.
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 11:11 pm
by rspector
this is what I'm seeing for errors lately
[20-Nov-2019 11:21:31 UTC] PHP Fatal error: Out of memory (allocated 110985216) (tried to allocate 16777224 bytes) in /home/umarq/public_html/dev.u-marq.us/public_html/vqmod/vqmod.php on line 336
[20-Nov-2019 11:21:31 UTC] PHP Fatal error: Out of memory (allocated 92110848) (tried to allocate 8388616 bytes) in /home/umarq/public_html/dev.u-marq.us/public_html/vqmod/vqmod.php on line 336
[20-Nov-2019 11:21:31 UTC] PHP Fatal error: Out of memory (allocated 190676992) (tried to allocate 4096 bytes) in /home/umarq/public_html/dev.u-marq.us/public_html/vqmod/vqmod.php on line 336
[20-Nov-2019 11:21:31 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 69043392 bytes) in /home/umarq/public_html/dev.u-marq.us/public_html/vqmod/vqmod.php on line 336
[20-Nov-2019 11:21:31 UTC] PHP Fatal error: Out of memory (allocated 152928256) (tried to allocate 33554440 bytes) in /home/umarq/public_html/dev.u-marq.us/public_html/vqmod/vqmod.php on line 336
[20-Nov-2019 13:30:58 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 69130192 bytes) in /home/umarq/public_html/dev.u-marq.us/public_html/vqmod/vqmod.php on line 336
line 336 of vqmod.php is the following
private static function _loadChecked() {
$file = self::path(self::$checkedCache);
if($file && is_file($file)) {
$paths = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
if(!empty($paths)) {
foreach($paths as $path) {
$fullPath = self::path($path, true);
if($fullPath) {
self::$_doNotMod[] = $fullPath;
}
}
}
}
}
can I safely comment that out?
Thank you!
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 11:19 pm
by letxobnav
ah, at least you know, VQmod.
I don't have that, lucky me as it seems to give nothing but trouble but I am sure there are people here who love it and can help you there.
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 11:30 pm
by rspector
I went ahead and commented that out and everything has sped up to an acceptable level. I'm worried that the code I removed is used for something (obviously) vq mod related. Any ideas?
Thank you
Rob
Re: open cart 3.0 very slw, despite compression a
Posted: Wed Nov 20, 2019 11:46 pm
by IP_CAM
Besides of some 'real' existing errors, you still have some way to go, to make this
Site work, as it could and should. But I never understud, why people 'implant' all those
GOOD FOR NOTHING Twitter/FB/Instagram/e.t.c. 'active' Links on their Shop Footer Pages,
they just slow down pageload, one won't get one single visitor more, because of that
timeconsuming crab. Just make 'regular' Links out of those, if you need them to show,
Visitors don't get impressed, by looking at follower-numbers.
Good Luck!
---

Re: open cart 3.0 very slw, despite compression a
Posted: Thu Nov 21, 2019 6:05 pm
by paulfeakins
IP_CAM wrote: ↑Wed Nov 20, 2019 11:46 pm
GOOD FOR NOTHING Twitter/FB/Instagram/e.t.c. 'active' Links on their Shop Footer Pages,
they just slow down pageload, one won't get one single visitor more, because of that
timeconsuming crab.
Haha true!
Re: open cart 3.0 very slw, despite compression a
Posted: Thu Nov 21, 2019 8:51 pm
by letxobnav
That is a small price to pay for those beautiful colors.
Everybody knows, when your site needs that extra "oompf", look no further than social media buttons.
Re: open cart 3.0 very slw, despite compression a
Posted: Thu Nov 21, 2019 8:52 pm
by paulfeakins
letxobnav wrote: ↑Thu Nov 21, 2019 8:51 pm
That is a small price to pay for those beautiful colors.
Everybody knows, when your site needs that extra "oompf", look no further than social media buttons.
