Post by Evilonion » Thu Nov 21, 2019 7:49 pm

hi all, i have a really strange issue with logging into customer accounts.
If you click to purchase something and login to an account that has been created it just refreshes the login page.
At one point i had an error message saying Error: undefined error.

So it seems you are not logged in. Yet, if you then click the account button to login it comes up with all account details so the site is actually logged in.

Its like the entire site is glitching due to the cache somehow... I've turned off all cache in admin yet it is still continuing with this glitch.
It does the same if i make changes to the site, i have to keep clearing browser cache and refreshing the page in order for changes to take effect.

The login is the biggest issue though as customers cannot order anything...
Im hosted with liquid web on a vps

Active Member

Posts

Joined
Sun Oct 30, 2016 8:07 pm

Post by Evilonion » Thu Nov 21, 2019 8:21 pm

this fix appears to have worked.

viewtopic.php?f=202&t=211118

although be aware there is an error and should be // not /

in system/framework.php
replace

Code: Select all

// Response
$response = new Response();
$response->addHeader('Content-Type: text/html; charset=utf-8');
$response->setCompression($config->get('config_compression'));
$registry->set('response', $response);
with

Code: Select all

// Response
$response = new Response();
$response->addHeader('Content-Type: text/html; charset=utf-8');
$response->addHeader('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
$response->addHeader('Pragma: no-cache');
$response->setCompression($config->get('config_compression'));
$registry->set('response', $response);

Active Member

Posts

Joined
Sun Oct 30, 2016 8:07 pm

Post by paulfeakins » Fri Nov 22, 2019 7:55 pm

Great, marking as [SOLVED].

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


User avatar
Guru Member

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 394 guests