Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer is automatically logged out during checkout process or sometime after order is placed #13889

Closed
akhileshlpatel opened this issue Feb 28, 2018 · 10 comments
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update

Comments

@akhileshlpatel
Copy link

Logged In customer automatically logged out during the checkout process when one of the catalog setting is set to YES in admin. This issue occurred when user come to the checkout page and sometimes just after placing an order. Sometimes when user just refresh the checkout page.

Preconditions

  1. Magento CE 2.2.2 with sample data is installed. PHP 7.0.26

Steps to reproduce

  1. Enable the setting in Admin -> Stores -> Configuration -> Catalog -> Catalog -> Recently Viewed/Compared Products -> Synchronize widget products with backend storage -> Yes
  2. Login as register customer.
  3. Add product in cart and go to the checkout page.
  4. Just refresh the checkout or go ahead with checkout process.

Expected result

  1. Customer should not be logged out automatically

Actual result

  1. Customer is logged out automatically

I have tested this with different PHP versions and in multiple websites.
settings

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Feb 28, 2018
@magento-engcom-team
Copy link
Contributor

@akhileshlpatel thank you for your report.
We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation or latest release.

1
2
3
4

@akhileshlpatel
Copy link
Author

@magento-engcom-team Thanks for the reply. Yes may be you didn't get the the issue in first time. Please check with different products and browsers if possible. Also I didn't check this in version 2.2.3 but I have checked this in version 2.2.2 and we faced this in many different setups.

1
2
3

@magento-engcom-team
Copy link
Contributor

@akhileshlpatel thank you for your report.
We were not able to reproduce this issue by following the steps you provided. We tried to reproduce this issue on the clean installation ver 2.2.2 Open source include "Sample Data" which downloaded from GitHub repository.
See the video record 13889.webm.zip

@fronke
Copy link

fronke commented Mar 6, 2018

Hi,

I also have the same problem since 2.2.2 but I still didn't figure out when it was happening exactly. It seems kind of random for now, but it happens most of the time between step 1 and 2 of checkout.

Please keep us informed if you find more about this.

Thanks

@magento-engcom-team
Copy link
Contributor

Hello @akhileshlpatel
Please try to reproduce this issue on the clean installation (clear, fresh, without any custom themes, third-party extensions, etc.)2.2.2 Open source include "Sample Data" and tell us the result.

@akhileshlpatel
Copy link
Author

akhileshlpatel commented Mar 7, 2018 via email

@darkrisingx
Copy link

darkrisingx commented Mar 16, 2018

Was having the same issue on 2.2.2 thought was a bug until after while upgraded to 2.2.3.

After upgrading to 2.2.3 it followed so I started to look into the issue. Found my issue as the magento team has stated to be a theme issue.

Looking into my theme the issue is something in my footer html not looked at my footer html yet but maybe I forgot to close a tag or something.

From your images the theme is modified from default so my guess is theme issue also.

UPDATE
Just looked into the html of my footer and sorta funny what was causing my issue. Html itself is fine it was <img src="#" /> that i've not yet created in my theme was just placeholder not got to finishing the footer yet.

Thankfully it's something simple.

@magento-engcom-team
Copy link
Contributor

@akhileshlpatel
We are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

@ant-workaholic
Copy link

ant-workaholic commented Apr 19, 2018

Have the same issue, which reproduces randomly. I have some js errors and my console.
customer-data.js:90 Uncaught Error: [object Object] at Object.<anonymous> (customer-data.js:90)

The main reason as I found that this request
http://mysite.com/customer/section/load/?sections=&update_section_id=false&_=1524132016526
Retrieves this response {"message":"No such entity with customerId = "}
It seems that something happens with my customer session and this happens real randmoly I can't catch exactly what steps to reproduce this. After this other rest requests crashes and user redirects to log in page.

@bibhuasish004
Copy link

Hi @ant-workaholic I am seeing similar issues with my instance.Could you please share the steps that you managed to resolve this issue .Thanks, in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update
Projects
None yet
Development

No branches or pull requests

6 participants