折腾:
【未解决】crifan.com的WordPress无法登录在wp-login登录页死循环
期间,去试试是否是cookie问题
WordPress wp-login.php 无法登录
难道是Safari的cookie限制问题?
好像是(此处Safari的禁止了)cookie的问题?
那换Chrome试试
问题依旧。不是浏览器的cookie问题。
“启用cookies
错误:Cookies被阻止或者您的浏览器不支持。要使用WordPress,您必须启用cookies。
解决方法:cookies启用,这个方法简单,打开ie浏览器,工具—Internet选项—隐私,直接选为“接受所有cookies”,如果可以解决,再选为“默认值”。”
去想办法看看此处Safari中,能否不限制 此处的 crifan.com的cookie
可以看到:
有自己的
以及另外之前就想要去研究的:
crifan.github.io
移除掉这两个:
- crifan.com
- crifan.github.io
然后再去试试
重新启动一个Safari页面,且确保此处的确没有crifan相关的cookie限制了:
再去访问:
问题依旧。
wp-admin redirects to wp-login wordpresswp-admin&reauth=1 | WordPress.org
Redirect from one wp-admin to other | WordPress.org
What Causes Login Page Refresh and Redirect Issue in WordPress?
Incorrect WordPress URL settings and failure to set login cookies are the most common reasons causing the login page redirect and refresh issue.
Normally, when you login, WordPress validates your username and password and then sets a login cookie in your browser. After that, it redirects you to the WordPress admin area.
看来和cookie关系最大
If WordPress fails to set the login cookie correctly, or your WordPress admin area URL is incorrect, then you’ll be redirected back to the login page instead of the admin dashboard.
去试试,清除cookie
竟然默认也是:
在无痕模式下阻止第三方Cookie
先暂时去改为
允许所有Cookie
看看效果
另外去给crifan.com加上始终允许cookie:
[*.] crifan.com
访问:
跳转到:
此时cookie:
点击登录后,中间跳转到了:
但是一闪而过,就又回到了登录页面,然后cookie是这种:
以及可以看到console有内容是:
11:22:32.286 wp-login.php?redirect_to=https%3A%2F%2Fwww.crifan.com%2Fwp-admin%2F&reauth=1:1 [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) <input type="password" name="pwd" id="user_pass" class="input password-input" value size="20"> 11:34:50.246 DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME 11:37:09.285 Navigated to https://www.crifan.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.crifan.com%2Fwp-admin%2F&reauth=1 11:37:09.369 DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME 11:37:10.591 wp-login.php?redirect_to=https%3A%2F%2Fwww.crifan.com%2Fwp-admin%2F&reauth=1:1 [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) <input type="password" name="pwd" id="user_pass" class="input password-input" value size="20"> 11:38:18.227 Navigated to https://www.crifan.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.crifan.com%2Fwp-admin%2F&reauth=1 11:38:18.308 DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME 11:38:19.172 wp-login.php?redirect_to=https%3A%2F%2Fwww.crifan.com%2Fwp-admin%2F&reauth=1:1 [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) <input type="password" name="pwd" id="user_pass" class="input password-input" value size="20">
再去想办法多试试几次,看看能否截图到中间的跳转页面
此处暂时觉得,基本上Chrome中关于cookie的清除和设置,都没啥问题了。
转载请注明:在路上 » 【未解决】修复WordPress登录页死循环:cookie方面问题