Post by pogo » Wed Sep 04, 2019 6:09 pm

Hi there,
I am using Version 3.0.2.0. This is the website URL: http://wall2wall.dev.pogo-digital.co.uk/ (this is a development website)
If you try to order anything and go to the checkout, try to login using the below login, the page refreshes but still shows need to login section (step 1).
user: user: li@pogo-digital.co.uk
pass: 1111
But if you Ctrl + F5, then the page is loaded, you can see the login session has started and the page shows step 2.
The same issue happens on cart, login / logout section as well. When you do something 1st time, it doesn't work, you then do Ctrl + F5, then it works.
I have been struggling to find any solution on this.
Can anyone help? It is a bit urgent as the website needs to be gone live very quickly.
Many thanks,
Regards,
P

Newbie

Posts

Joined
Tue Jan 09, 2018 11:40 pm

Post by by mona » Wed Sep 04, 2019 8:45 pm

contact your theme developer

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by pogo » Thu Sep 05, 2019 2:48 pm

I have. And they said

Regarding login, as we see issue might be cauased by caching on server -> viewtopic.php?t=124597 and it's opencart engine functionality, it's not related to tempalte iself , so we do not provide support regarding this issue.
2) Regarding payment methods, as we see there is some issue related to cache as well, since we were able to go until payment first time and see 2 options for payment, but second time doing the same actions we were not able proceed to payment even so , since face issue with this ->
http://prntscr.com/p1ew74

Also, we would like to note that issue is not related to template or modules that are provided with template, that is why it's beyond of scope of our support.

It's engine issues, so first thing is to check forum of opencart, since it's free software ->
https://forum.opencart.com/


That's why I m trying for help here.

Thanks

Newbie

Posts

Joined
Tue Jan 09, 2018 11:40 pm

Post by by mona » Thu Sep 05, 2019 3:52 pm

It may be your server, I had a problem with varnish server on OC1.5, but the headers and checkout was fine, the mini cart was a problem. You can give a quick call to your service providers and check if you are on a varnish/cloudflair or similar caching server. There are things you can try, the processing speed is amazing, but we found it a problem.
Do you have an caching / speed accelerating extensions?
If not, I would suggest you disable the extensions / theme and see if its ok on the default theme.

You can also search for cache control headers on google

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by letxobnav » Thu Sep 05, 2019 6:30 pm

enable developer tools in your browser.
Network tab, check disable cache.

check if you still have the issue.

if yes, you are still caching server side.
if no, you are sending the wrong cache headers to the browser.

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 pogo » Thu Sep 05, 2019 9:59 pm

letxobnav wrote:
Thu Sep 05, 2019 6:30 pm
enable developer tools in your browser.
Network tab, check disable cache.

check if you still have the issue.

if yes, you are still caching server side.
if no, you are sending the wrong cache headers to the browser.
Thank you letxobnav.
I have tried to disable the cache in Network tab and it seems the issue is gone.
Do you know how to check the cache headers? and maybe disable the cache header?
Could you please advise?

Many thanks.
P

Newbie

Posts

Joined
Tue Jan 09, 2018 11:40 pm

Post by letxobnav » Thu Sep 05, 2019 10:24 pm

viewtopic.php?f=202&t=213072&p=761353&h ... he#p761353

make that change and it should be fine.

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 pogo » Fri Sep 06, 2019 8:51 pm

letxobnav wrote:
Thu Sep 05, 2019 10:24 pm
viewtopic.php?f=202&t=213072&p=761353&h ... he#p761353

make that change and it should be fine.
Thank you letxobnav for your help.
I found the issue which was the expiry scripts in the .htaccess file that comes with the theme. Like the below:

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
# Resources
ExpiresByType application/x-javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
</IfModule>

# -----------------------------------------------------------------------
# Defining MIME types to ensure the web server actually knows about them.
# -----------------------------------------------------------------------
<IfModule mod_mime.c>
AddType application/javascript js
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
AddType application/x-font-woff2 woff2
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</Ifmodule>


As soon as I deleted those lines, the website works fine. hehe.

Thank you all for your help.

P

Newbie

Posts

Joined
Tue Jan 09, 2018 11:40 pm

Post by letxobnav » Fri Sep 06, 2019 9:12 pm

no no no, you lose all your browser caching for all static assets, don't.

the only problem there is this line:

Code: Select all

ExpiresDefault "access plus 1 month"
that means that the browser should cache everything at least 1 month including html (your dynamic content), that is what you do not want, you do however want the browser to cache css, js, images, etc. for a week, a month or longer or your site will become the slow player on the team.

so make that line:

Code: Select all

ExpiresDefault A0
which means expire right now.
And leave the others in place.

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
Who is online

Users browsing this forum: No registered users and 81 guests