最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【未解决】修复WordPress登录页死循环:cookie方面问题

WordPress crifan 187浏览 0评论
折腾:
【未解决】crifan.com的WordPress无法登录在wp-login登录页死循环
期间,去试试是否是cookie问题
WordPress wp-login.php 无法登录
WordPress博客无法登陆后台的解决办法 | 半省堂
难道是Safari的cookie限制问题?
How to Fix WordPress Login Page Refreshing and Redirecting Issue
好像是(此处Safari的禁止了)cookie的问题?
那换Chrome试试
问题依旧。不是浏览器的cookie问题。
wordpress后台无法登陆出现死循环解决方案 | 511遇见
“启用cookies
错误:Cookies被阻止或者您的浏览器不支持。要使用WordPress,您必须启用cookies。
解决方法:cookies启用,这个方法简单,打开ie浏览器,工具—Internet选项—隐私,直接选为“接受所有cookies”,如果可以解决,再选为“默认值”。
去想办法看看此处Safari中,能否不限制 此处的 crifan.com的cookie
可以看到:
有自己的
crifan.com
以及另外之前就想要去研究的:
crifan.github.io
移除掉这两个:
然后再去试试
重新启动一个Safari页面,且确保此处的确没有crifan相关的cookie限制了:
再去访问:
https://www.crifan.com/wp-admin/
问题依旧。
wp-admin redirects to wp-login wordpresswp-admin&reauth=1 | WordPress.org
https://wordpress.org/support/topic/wp-admin-redirects-to-wp-login-wordpresswp-adminreauth1/
Redirect from one wp-admin to other | WordPress.org
https://wordpress.org/support/topic/redirect-from-one-wp-admin-to-other/
WordPress “Reauth=1” Logon Loop And “Cookies are blocked” Error. How I Fixed it? » Winhelponline
How to Fix WordPress Login Page Refreshing and Redirecting Issue
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
chrome://settings/cookies
竟然默认也是:
在无痕模式下阻止第三方Cookie
先暂时去改为
允许所有Cookie
看看效果
另外去给crifan.com加上始终允许cookie:
[*.]
crifan.com
访问:
https://www.crifan.com/wp-admin/
跳转到:
https://www.crifan.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.crifan.com%2Fwp-admin%2F&reauth=1
此时cookie:
点击登录后,中间跳转到了:
https://www.crifan.com/wp-admin/
但是一闪而过,就又回到了登录页面,然后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方面问题

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.134 seconds, using 20.63MB memory