Title: pec2021's Replies | WordPress.org

---

# pec2021

  [  ](https://wordpress.org/support/users/pec2021/)

 *   [Profile](https://wordpress.org/support/users/pec2021/)
 *   [Topics Started](https://wordpress.org/support/users/pec2021/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pec2021/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pec2021/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pec2021/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pec2021/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pec2021/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Wp-admin gives unknown username error](https://wordpress.org/support/topic/wp-admin-gives-unknown-username-error/)
 *  [pec2021](https://wordpress.org/support/users/pec2021/)
 * (@pec2021)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-gives-unknown-username-error/#post-14676418)
 * I think I found a solution, this looks like it solved it for me: (When I log 
   in the very first time I get a cookie error so I found this and tried it, seems
   to work fine now)
 *     ```
       A permanent fix to cookies being blocked
       If neither solution works, try this more technical fix. You’ll need some technical/coding knowledge to add this code in.
   
       First of all, you’ll need to open your website’s function.php file. Then add the following code:
       setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
       if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
       ```
   
 * Soltion URL: [https://www.parrotcreative.co.uk/cookies-blocked-or-not-supported-by-browser/](https://www.parrotcreative.co.uk/cookies-blocked-or-not-supported-by-browser/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Wp-admin gives unknown username error](https://wordpress.org/support/topic/wp-admin-gives-unknown-username-error/)
 *  [pec2021](https://wordpress.org/support/users/pec2021/)
 * (@pec2021)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-gives-unknown-username-error/#post-14676328)
 * I am having the exact same error since about 2 days ago. I noticed that when 
   I create a fresh wordpress installation it looks like the email address is shortened(
   rendering retreiving password unusaable)
 * My symptoms: I couldnt log into my existing site or retrieve my password – Username
   and Password doesn’t exist (the same I’ve been using for months).
 * I do a fresh WordPress installation, am able to work on the fresh installation.
   
   I create 2 extra users since I was afraid I will be locked out again.
 * I am able to log in with the extra users.
 * When I close my browser or after an hour or so NONE of the usernames, email addresses
   or passwords work on the site.
 * The usernames and passwords also can’t get a reset password link.
 * I am thus locked out of the site.
 * I downloaded an tested a Send email from wordpress plugin to test if WP can send
   emails and it could.
 * When I try to change the credtenials from myPHP in the database the also does
   not work.
 * I tried resetting with md5 password and multiple other attempts.
 * Is this something on my side I don’t understand Why the credentials disappear?
   I read there was a Woo Commerce security breach on the 15th of July does this
   have something to di with that?

Viewing 2 replies - 1 through 2 (of 2 total)