Magento2: Minicart is full while Cart is Empty
A lot of our customers are complaining that they add stuff to the cart & then when they proceed to checkout they are redirected to an empty cart.
We thought that it might be a result of too short session time, so we tried increasing the cookie/session lifetime to 86400 (on both admin & server).
After that, I tried to reproduce the problem & managed to achieve the weird behavior as you can see on the attached screenshot.
I added products to cart, came back after about 20-30 minutes & saw my items in the minicart. then I proceeded to checkout & it redirected me to this empty cart while the minicart is still showing my items (refreshing the page also didn't work):

-- Any Idea?
UPDATE: So far we managed to solve this issue by changing back the session configuration to use files (disabled Memcached). I know that Magento recommends using Memcached & have no idea what caused this issue...
checkout cart magento-2.1.7 cookie checkoutsession
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
A lot of our customers are complaining that they add stuff to the cart & then when they proceed to checkout they are redirected to an empty cart.
We thought that it might be a result of too short session time, so we tried increasing the cookie/session lifetime to 86400 (on both admin & server).
After that, I tried to reproduce the problem & managed to achieve the weird behavior as you can see on the attached screenshot.
I added products to cart, came back after about 20-30 minutes & saw my items in the minicart. then I proceeded to checkout & it redirected me to this empty cart while the minicart is still showing my items (refreshing the page also didn't work):

-- Any Idea?
UPDATE: So far we managed to solve this issue by changing back the session configuration to use files (disabled Memcached). I know that Magento recommends using Memcached & have no idea what caused this issue...
checkout cart magento-2.1.7 cookie checkoutsession
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
A lot of our customers are complaining that they add stuff to the cart & then when they proceed to checkout they are redirected to an empty cart.
We thought that it might be a result of too short session time, so we tried increasing the cookie/session lifetime to 86400 (on both admin & server).
After that, I tried to reproduce the problem & managed to achieve the weird behavior as you can see on the attached screenshot.
I added products to cart, came back after about 20-30 minutes & saw my items in the minicart. then I proceeded to checkout & it redirected me to this empty cart while the minicart is still showing my items (refreshing the page also didn't work):

-- Any Idea?
UPDATE: So far we managed to solve this issue by changing back the session configuration to use files (disabled Memcached). I know that Magento recommends using Memcached & have no idea what caused this issue...
checkout cart magento-2.1.7 cookie checkoutsession
A lot of our customers are complaining that they add stuff to the cart & then when they proceed to checkout they are redirected to an empty cart.
We thought that it might be a result of too short session time, so we tried increasing the cookie/session lifetime to 86400 (on both admin & server).
After that, I tried to reproduce the problem & managed to achieve the weird behavior as you can see on the attached screenshot.
I added products to cart, came back after about 20-30 minutes & saw my items in the minicart. then I proceeded to checkout & it redirected me to this empty cart while the minicart is still showing my items (refreshing the page also didn't work):

-- Any Idea?
UPDATE: So far we managed to solve this issue by changing back the session configuration to use files (disabled Memcached). I know that Magento recommends using Memcached & have no idea what caused this issue...
checkout cart magento-2.1.7 cookie checkoutsession
checkout cart magento-2.1.7 cookie checkoutsession
edited Dec 17 '17 at 7:28
Pini
asked Dec 14 '17 at 13:11
PiniPini
385213
385213
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Magento places all customer specific data(shopping cart, customer name, etc...) in local storage in order to prevent caching on proxies like Varnish. Later this data is inserted into the page using JS. The behavior you observed is a misconfiguration of cache lifetime. Ideally, it should be aligned with session lifetime.
As I said, we increased both session & cookie to 86400, that didn't help. The only thing that seems to fix the issue was to disable the memcached (which was configured as suggested by Magento's docs). We stopped checking the issue after that so I have no idea what actually caused it.
– Pini
Mar 2 '18 at 17:09
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f205824%2fmagento2-minicart-is-full-while-cart-is-empty%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Magento places all customer specific data(shopping cart, customer name, etc...) in local storage in order to prevent caching on proxies like Varnish. Later this data is inserted into the page using JS. The behavior you observed is a misconfiguration of cache lifetime. Ideally, it should be aligned with session lifetime.
As I said, we increased both session & cookie to 86400, that didn't help. The only thing that seems to fix the issue was to disable the memcached (which was configured as suggested by Magento's docs). We stopped checking the issue after that so I have no idea what actually caused it.
– Pini
Mar 2 '18 at 17:09
add a comment |
Magento places all customer specific data(shopping cart, customer name, etc...) in local storage in order to prevent caching on proxies like Varnish. Later this data is inserted into the page using JS. The behavior you observed is a misconfiguration of cache lifetime. Ideally, it should be aligned with session lifetime.
As I said, we increased both session & cookie to 86400, that didn't help. The only thing that seems to fix the issue was to disable the memcached (which was configured as suggested by Magento's docs). We stopped checking the issue after that so I have no idea what actually caused it.
– Pini
Mar 2 '18 at 17:09
add a comment |
Magento places all customer specific data(shopping cart, customer name, etc...) in local storage in order to prevent caching on proxies like Varnish. Later this data is inserted into the page using JS. The behavior you observed is a misconfiguration of cache lifetime. Ideally, it should be aligned with session lifetime.
Magento places all customer specific data(shopping cart, customer name, etc...) in local storage in order to prevent caching on proxies like Varnish. Later this data is inserted into the page using JS. The behavior you observed is a misconfiguration of cache lifetime. Ideally, it should be aligned with session lifetime.
answered Mar 1 '18 at 16:25
Andrey KonosovAndrey Konosov
371111
371111
As I said, we increased both session & cookie to 86400, that didn't help. The only thing that seems to fix the issue was to disable the memcached (which was configured as suggested by Magento's docs). We stopped checking the issue after that so I have no idea what actually caused it.
– Pini
Mar 2 '18 at 17:09
add a comment |
As I said, we increased both session & cookie to 86400, that didn't help. The only thing that seems to fix the issue was to disable the memcached (which was configured as suggested by Magento's docs). We stopped checking the issue after that so I have no idea what actually caused it.
– Pini
Mar 2 '18 at 17:09
As I said, we increased both session & cookie to 86400, that didn't help. The only thing that seems to fix the issue was to disable the memcached (which was configured as suggested by Magento's docs). We stopped checking the issue after that so I have no idea what actually caused it.
– Pini
Mar 2 '18 at 17:09
As I said, we increased both session & cookie to 86400, that didn't help. The only thing that seems to fix the issue was to disable the memcached (which was configured as suggested by Magento's docs). We stopped checking the issue after that so I have no idea what actually caused it.
– Pini
Mar 2 '18 at 17:09
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f205824%2fmagento2-minicart-is-full-while-cart-is-empty%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown