cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2: Kein Login möglich mit Chrom

Magento 2: Kein Login möglich mit Chrom

Hallo,

 

ich habe einen Magento 2.2.5 shop installiert.

Leider kann ich vom Server noch keine Email senden.

 

Aber ich kann mich als Kunde registrieren ... er wird auch im admin angelegt und habs eingestellt, das man diese nicht bestätigen muss.

 

Wenn ich aber auf Login gehe und die Daten eingebe, wird das Login anscheinend übernommen (Falsche Passwort zeigt er an) aber ich bin als Benutzer nicht eingeloggt.

 

Wo kann hier die Ursache zu suchen sein?

 

Edit: Es ist nur beim Google Chrom. Firefox klappt.

 

Danke!

4 REPLIES 4

Re: Magento 2: Kein Login möglich mit Chrom

Kindly change your baseurl to your static ip.

if you run your project with http://localhost/magento2 then need to change your url like http://127.0.0.1/magento2

 

You can direct changes this setting from Stores -> Configuration -> General -> Web -> Secure Url and UnSecure Url section from backend.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Magento 2: Kein Login möglich mit Chrom

Hello Rakesh,

 

many thanks for your reply ... I found this solution in the web, but my Magento 2 is set to an public DNS name:

http://subdomain.domain.com
https://subdomain.domain.com

 

So its not localhost ... its running on a virtual server in the cloud.

Admin login are working, but not front side login.

 

Maybe a problem with the cookies? I added cookie domain to subdomain.domain.com ... but did not help.

Is there somewhere a log file which I can proof?

Chrom Inspector while the login procedure show this:

Unhandled rejection Error
    at child.onBeforeRender (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/frames.js:5:27244)
    at Object._triggerMethod (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/frames.js:8:17025)
    at child.triggerMethod (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/frames.js:9:3085)
    at child.render (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/frames.js:9:5234)
    at child.render (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/frames.js:1:695)
    at child.render (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/frames.js:9:20100)
    at child.render (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/frames.js:1:695)
    at onDocumentLoaded (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/content-script.js:7:26954)
From previous event:
    at HTMLDocument.<anonymous> (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/content-script.js:7:27598)
    at fire (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/content-script-libs.js:2:28013)
    at Object.fireWith [as resolveWith] (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/content-script-libs.js:2:29202)
    at Function.ready (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/content-script-libs.js:3:64)
    at HTMLDocument.completed (chrome-extension://nbeldjopgciegccabfohnefghfpinncn/scripts/content-script-libs.js:1:2164)

 

 

Re: Magento 2: Kein Login möglich mit Chrom

@hanhoe

 

There is a login issue in Google Chrome. Set Use HTTP only to No in the Session Cookie Management section of System, Configuration, Web. Don't do this on production servers as it is a security risk. Use this SQL snippet to update it: UPDATE core_config_data SET value = '0' WHERE path = 'web/cookie/cookie_httponly';

 

You may also want to try the suggestions here: https://magento.stackexchange.com/questions/121457/magento-admin-login-refreshes-for-correct-credent...

 

==

Auf Deutsch (bitte verzeih mein schlechtes Deutsch):

 

In Google Chrome ist ein Anmeldeproblem aufgetreten. Setzen Sie im Abschnitt "Sitzungs-Cookie-Verwaltung" von "System, Konfiguration, Web" die Option "Nur HTTP verwenden" auf "Nein". Tun Sie dies nicht auf Produktionsservern, da dies ein Sicherheitsrisiko darstellt. Verwenden Sie dieses SQL-Snippet, um es zu aktualisieren: UPDATE core_config_data SET value = '0' WHERE path = 'web/cookie/cookie_httponly';

 

Vielleicht möchten Sie auch die Vorschläge hier ausprobieren:

https://magento.stackexchange.com/questions/121457/magento-admin-login-refreshes-for-correct-credent...





Magento Certification Directory:

https://u.magento.com/certification/directory/dev/498894/

Commerce Hero:

https://commercehero.io/simonfrost

Re: Magento 2: Kein Login möglich mit Chrom

Hello,

 

ok, I tried this .. but don´t work for me.

 

Did it mean, I have to open the Magento 2 store with http?

Apache has a 301 redirect to https ... I can´t open my shop without https.

 

I clean the cache after setting. Or is there another command to call?

 

Thanks!