Hey guys,
I have a bit of a wild and confusing issue/problem. I have some customers whom will be logged in, and when trying to go to checkout, it will revert back to the homepage, or go back to the login page and have the log in again. It is a very rare occurrence and only happens to seemingly a few customers, however it seems to be a very common occurrence amongst those that it does happen to which obviously can be very very irritating (and mostly because it is an issue I can't seem to replicate myself...).
I have gone through many steps to help them where clearing their browser cache or attempting it in another browser will relieve the issue at the moment, but it inevitably comes back to the same issue.
I am at a loss as to what could cause such issues, so I figure I'll run with giving you guys plenty of my server and database setup information and see if you guys think any of that could be part of the issue.
app/etc/env.php:
'db' => [
'table_prefix' => '',
'connection' => [
'default' => [
'host' => 'localhost:3306',
'dbname' => 'xxxxxx',
'username' => 'xxxxxxxx',
'password' => 'xxxxxxxx',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1'
]
]
],
'resource' => [
'default_setup' => [
'connection' => 'default'
]
],
'x-frame-options' => 'SAMEORIGIN',
'MAGE_MODE' => 'developer',
'session' => [
'save' => 'files'
],
'cache_types' => [
'config' => 1,
'layout' => 1,
'block_html' => 0,
'collections' => 1,
'reflection' => 1,
'db_ddl' => 1,
'eav' => 1,
'customer_notification' => 1,
'config_integration' => 1,
'config_integration_api' => 1,
'full_page' => 1,
'translate' => 1,
'config_webservice' => 1,
'compiled_config' => 1
]
We don't use root as our domain/store url (as if to use www.example.com/store/ for the homepage), so our root htaccess has:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} (bot|crawl|robot|spider)
RewriteCond %{HTTP_USER_AGENT} !(bing|Google|msn|MSR|Twitter|Yandex) [NC]
RewriteRule ^/?.*$ "http\:\/\/127\.0\.0\.1" [R,L]
RewriteCond %{REQUEST_URI} !/(demos|examples|store)/ [NC]
RewriteRule ^(.*)$ /store/$1 [R=301,L]
Last thing I can think of is the settings within Configuration > General > Web:
URL Options:
> Auto-redirect to Base URL: Yes (302 Found)
Search Engine Optimization:
> Use Web Server Rewrites: Yes
Base URLs:
> Base URL: https://example.com/store/
> Base Link URL: https://example.com/store/
Base URLs (Secure):
> Secure Base URL: https://example.com/store/
> Secure Base Link URL: https://example.com/store/
> Use Secure URLs on Storefront: Yes
> Use Secure URLs in Admin: Yes
> HSTS: No
> Upgrade Insecure Requests: No
Default Cookie Settings:
> Cookie Lifetime: 36000
> Cookie Path:
> Cookie Domain:
> Use HTTP Only: Yes
> Cookie Restriction Mode: No
And our Cloudflare caching settings would be set as:
Caching Level: No query string
Browser Cache expiration: 1 Day
Always Online: Yes
... Any ideas what could cause these types of issues? Does anyone else experience similar circumstances? Would GREATLY appreciate any help! I am at a complete loss!
Thank you all.