{"id":16698595,"date":"2023-04-29T21:12:13","date_gmt":"2023-04-29T21:12:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-an-error-was-encountered-while-trying-to-authenticate-please-try-again-9\/"},"modified":"2023-04-29T21:12:13","modified_gmt":"2023-04-29T21:12:13","slug":"error-an-error-was-encountered-while-trying-to-authenticate-please-try-again-9","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-an-error-was-encountered-while-trying-to-authenticate-please-try-again-9\/","title":{"rendered":"ERROR: An error was encountered while trying to authenticate. Please try again."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code>ERROR: An error was encountered while trying to authenticate. Please try again.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have been having this issue getting close to a year now and it&#8217;s driving me absolutely nuts. I have tried many times to resolve the issue and nothing has worked. The thing that I don&#8217;t get is that I am the only one that has this issue with logging in. I am the main Admin of the site, and I built the entire customized theme from the ground up, so I know it from front to back. I&#8217;m a senior full-stack developer with many years of experience with even WordPress, so it&#8217;s not like I don&#8217;t know what I&#8217;m doing either.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We basically have two admins, and the other admin has never had this issue even once. I have found many articles on this in the forums and have tried many suggestions from Wordfence, and nothing seems to work. What I also don&#8217;t get is that my Stage site, I have never had this issue, and it uses the same exact Wordfence settings as prod. Absolutely identical. It&#8217;s also on the same host\/server\/etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Steps to login.<\/strong><br \/>I have to do this almost every single time I login.<\/p>\n\n\n\n<ol>\n<li>Go to login and login (credentials are correct). Which gives me the error:<br \/><code>ERROR: An error was encountered while trying to authenticate. Please try again.<\/code><\/li>\n\n\n\n<li>Next I login to FTP, rename the plugin folder.<\/li>\n\n\n\n<li>Go to the login and login again, which then gives me the error:<br \/><code>\"<strong>Error:<\/strong>\u00a0Cookies are blocked or not supported by your browser. You must\u00a0<a href=\"https:\/\/wordpress.org\/support\/article\/cookies\/#enable-cookies-in-your-browser\">enable cookies<\/a>\u00a0to use WordPress.\"<\/code><br \/>My cookies are enabled already.<\/li>\n\n\n\n<li>Then I refresh the page, which then asks &#8220;are you sure you want to resubmit&#8230;&#8221; which I agree to, and then the site reloads and logs in.<\/li>\n\n\n\n<li>I then go through the steps of getting Wordfence back on.<\/li>\n\n\n\n<li>If I log off, then try to log back in again, I don&#8217;t have the problem. If I close the browser and end the session, I do have the problem again and have to start over again.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>I have tried<\/strong><\/p>\n\n\n\n<ol>\n<li>Completely removing the plugin, re-installed, re-configured, let it go through the learning phase, etc. Including deleting the database tables and starting 100% fresh.<\/li>\n\n\n\n<li>Using WF Assistant to disable firewall before reenabling it.<\/li>\n\n\n\n<li>Compared Stage to Prod for differences (htaccess, configs, wf settings, etc.) Nothing seems to be different.<\/li>\n\n\n\n<li>Tried different browsers with a clean cache\/cookies\/etc. I have tried in all of these browsers, all with the same exact results when trying to login.\n<ul>\n<li>Chrome<\/li>\n\n\n\n<li>Firefox<\/li>\n\n\n\n<li>Edge<\/li>\n\n\n\n<li>Opera<\/li>\n\n\n\n<li>Brave<\/li>\n\n\n\n<li>Safari<\/li>\n\n\n\n<li>Vivaldi<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>I have tried logging in off any firewall, on my work firewall, using my firewall to login to the same location as the other admin. <\/li>\n\n\n\n<li>I manage multiple WordPress sites, using Wordfence, and this is the only site I have this issue. All using almost identical configs.<\/li>\n\n\n\n<li>I have tried multiple different things to fix the `Cookies are blocked or not supported by your browser. error by adding to the php, htacess, etc..<\/li>\n\n\n\n<li>I have disabled all browser extensions to make sure none of them were causing the issue, that also did not work, I also did this in the other browsers.<\/li>\n\n\n\n<li>I have tried adding my IP to the whitelist which should bypass any issues. I have also removed my IP&#8217;s.<\/li>\n\n\n\n<li>I have created a new user to try to login with. Same problem.<\/li>\n\n\n\n<li>I have tried to login with all plugins turned off (except necessary ones), and I only have the login issue when Wordfence is enabled.<\/li>\n\n\n\n<li>I tried using my old computer, but it also had this issue (Mac Intel).<\/li>\n\n\n\n<li>I tried using my wife&#8217;s computer, (Mac Intel), same issue.<\/li>\n\n\n\n<li>I have tried with the laptop not plugged into anything (usb, power, monitors, hubs, etc).<\/li>\n\n\n\n<li>I have tried on\/off my work VPN. I have tried on\/off my personal VPN. I have tried logging in from the location of where the other Admin logs in. No change, same problem.<\/li>\n\n\n\n<li>I have tried with 2FA on\/off.<\/li>\n\n\n\n<li>I have tried with tried with Google reCaptcha on\/off.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">When I try to login on my work laptop, which is configured almost identical to mine, I CAN login (Mac Intel). Since I use my work and home laptops for development, I try to keep them setup exactly the same. Why it works there, I have no idea. Both computers OS&#8217;s are up to date, as well as browsers. Why it works on that Mac, but not my current Mac (m1), my older Mac (Intel), and my wife&#8217;s Mac (Intel), with all of them being on the same OS versions. All of them I used the same user\/pass.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At this point I&#8217;m at a loss of what to do. No &#8220;solution&#8221; I have found online or the forums has worked.<\/p>\n","protected":false},"template":"","class_list":["post-16698595","topic","type-topic","status-publish","hentry","topic-tag-auth","topic-tag-authentication","topic-tag-cookies","topic-tag-login"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16698595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16698595\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16698595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}