cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.2 Customers Cannot login to Front End

Magento 2.4.2 Customers Cannot login to Front End

A couple of weeks ago my customers started to have issues logging into the front end. I tried this myself and after you enter your password and click login, the page reloads and you are never logged in. I don't see anything in the exception logs. the only thing I can think of that may have changed is some updates to my theme. So, that could possibly be related. Any help would be greatly appreciated.

7 REPLIES 7

Re: Magento 2.4.2 Customers Cannot login to Front End

Please check the issue by enabling the developer mode to see if there is any error..
Also you can uncomment the error log from bootstrap.php and then run setup:di:compile
you can see the error..
Please specify the error then i will help you more.. 

Thanks !!!

Re: Magento 2.4.2 Customers Cannot login to Front End

I just checked my logs and am seeing this repeatedly:

127.0.0.1 - - [06/May/2021:00:03:29 -0400] "GET /customer/account/login/referer/aHR0cHM6Ly9zaG93c3VwcGx5LmNvbS9zZW5kZnJpZW5kL3Byb2R1Y3Qvc2VuZC9pZC8yMDEwL2NhdF9pZC8yLw,,/ HTTP/1.1" 200 17611 "-" "Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)"
127.0.0.1 - - [06/May/2021:00:03:31 -0400] "GET /customer/account/loginPost/referer/aHR0cHM6Ly9zaG93c3VwcGx5LmNvbS9hdWRpby5odG1sP2NhdD0zNCZwcmljZT0yMDAwLTMwMDAlMkMtMTAwMCUyQy0xMDAlMkMyMDAtMzAwJTJDLTEwMDAlMkMzMDAwLSUyQzMwMDAt HTTP/1.1" 404 18581 "-" "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)"
127.0.0.1 - - [06/May/2021:00:03:33 -0400] "GET /customer/account/login/referer/aHR0cHM6Ly9zaG93c3VwcGx5LmNvbS9zZW5kZnJpZW5kL3Byb2R1Y3Qvc2VuZC9pZC8yMDExL2NhdF9pZC80OS8,/ HTTP/1.1" 200 17614 "-" "Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)"
127.0.0.1 - - [06/May/2021:00:03:33 -0400] "GET /health_check.php HTTP/1.1" 200 5 "-" "-"

Re: Magento 2.4.2 Customers Cannot login to Front End

Hi @joe_masciangelo,

 

Maybe it's related on server space or var/session folder permissions (if you are using default (files) session storage)

 

Hope this can help you! Let me know if you need further assistance.

__________

If issue solved, Click Kudos & Accept as Solution.

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/

Re: Magento 2.4.2 Customers Cannot login to Front End

I do not have a var/session folder. I am using redis for session storage. Is there something here I should be looking at to troubleshoot?

Re: Magento 2.4.2 Customers Cannot login to Front End

Hi @joe_masciangelo,

 

If you are using Redis then check the configuration again.

 

Depending on your installation, you can usually find your Redis configuration in one of the following files: /etc/redis/redis.conf or /etc/redis/<port>.conf

 

To optimize the Redis instance for your requirements, you get best results by using a dedicated instance for each session, Magento cache and FPC.

 

Hope this can help you! Let me know if you need further assistance.

________

If issue solved, Click Kudos & Accept as Solution.

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/

Re: Magento 2.4.2 Customers Cannot login to Front End

Hello,

 

I have the same issue but I am not using Redis cache. Any idea of a fix so as the customers to be able to login again?

 

Thank you

Re: Magento 2.4.2 Customers Cannot login to Front End

For me, the issue was in web/cookie/cookie_domain this one was wrong.

Configuration > General > Web > Default Cookie Setting -> "Cookie Domain" and change it to start with the dot.

Before: fr.blabla.localhost

After: .blabla.localhost

 

Magento 2.4.6-p2