Post by rspector » Wed Nov 20, 2019 10:03 am

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

Newbie

Posts

Joined
Tue Oct 17, 2017 8:14 am

Post by letxobnav » Wed Nov 20, 2019 12:19 pm

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');

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by letxobnav » Wed Nov 20, 2019 4:12 pm

you are also mixing www.domain and non-www.domain which make your fontawesome icons not appear.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by IP_CAM » Wed Nov 20, 2019 7:35 pm

Image

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by rspector » Wed Nov 20, 2019 10:29 pm

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!

Newbie

Posts

Joined
Tue Oct 17, 2017 8:14 am

Post by letxobnav » Wed Nov 20, 2019 10:48 pm

check your server error log.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by rspector » Wed Nov 20, 2019 11:11 pm

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!

Newbie

Posts

Joined
Tue Oct 17, 2017 8:14 am

Post by letxobnav » Wed Nov 20, 2019 11:19 pm

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.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by rspector » Wed Nov 20, 2019 11:30 pm

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

Newbie

Posts

Joined
Tue Oct 17, 2017 8:14 am

Post by IP_CAM » Wed Nov 20, 2019 11:46 pm

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. :laugh: :crazy:
Good Luck! ;)
---
Image

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by paulfeakins » Thu Nov 21, 2019 6:05 pm

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!

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by letxobnav » 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.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Thu Nov 21, 2019 8:52 pm

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.
:laugh: :laugh: :laugh:

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 58 guests