Title: Yet again another cookie error while login.
Last modified: September 1, 2016

---

# Yet again another cookie error while login.

 *  [notalentgeek](https://wordpress.org/support/users/notalentgeek/)
 * (@notalentgeek)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/)
 * I had my blog moved from remote to local (from shared hosting IPage).
    My blog
   was fine (except images and themes obviously), but when I try to log in I always
   get notification that my browser cookie is not enabled.
 * ERROR: Cookies are blocked or not supported by your browser. You must enable 
   cookies to use WordPress.
 * I have tried these but no luck.
    - Make sure the cookie is enabled in my browser.
    - Check using different browser (Edge, GoogleChrome, Firefox).
    - Disabling Varnish Cache from .htaccess, by writing “Header set Cache-Control“
      max-age=0, private, no-cache, no-store, must-revalidate”.
    - Tried to comment this code in wp-login.php.
    -     ```
          //	if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
          //		$user = new WP_Error('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
          //	else
          		$user = wp_signon('', $secure_cookie);
          ```
      
    - Adding these in wp-config.php.
    -     ```
          define('ADMIN_COOKIE_PATH', '/');
          define('COOKIE_DOMAIN', '');
          define('COOKIEPATH', '');
          define('SITECOOKIEPATH', '');
          ```
      
    - Disable plugins.
 * I use the latest WordPress version per last week around 9th of June 2016.

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

 *  [abletec](https://wordpress.org/support/users/abletec/)
 * (@abletec)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-7478257)
 * Hi, notalentgeek, & welcome to the WordPress support forum. Are you saying this
   is a local install? If so, is this a Windows, Mac, or Linux box? Also, what is
   the folder name to which your WordPress is installed?
 * My suspicion is that your file permissions are set incorrectly, but I’d like 
   some clarification on the above questions before saying anything more, because
   giving suggestions for solutions w/o fully understanding the problem only tends
   to complicate matters.
 * If you’ve moved your blog from IPage to a local install, what have you done to
   change the url’s in the database?
 * I think I’ve asked enough questions for now. Answering them in your next reply
   will help us help you better.
 *  Thread Starter [notalentgeek](https://wordpress.org/support/users/notalentgeek/)
 * (@notalentgeek)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-7478279)
 * [@jackie](https://wordpress.org/support/users/jackie/) McBride
 * Ohhh hello!
 * I think my hosting was a Linux shared hosting. While my local is a Windows 10
   Pro. My folder name is blog_wordpress.
 * While it was in remote I remember, I changed its (all file and folder) permission
   to 777 (or lower?) using chmod.
 * I did change the WP_HOME and WP_SITEURL to [http://localhost/blog_wordpress](http://localhost/blog_wordpress).
   However, all images and themes are still set into absolute address of my remote.
   Hence, when there is no internet connection, images and themes are not loaded.
 *  [abletec](https://wordpress.org/support/users/abletec/)
 * (@abletec)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-7478331)
 * Hi, notalentgeek. Let’s start by ensuring all your images, etc. are local. Please
   check your wp-content/uploads folder (assuming a default WordPress installation)
   to ensure all your images are there. Replace them if not.
 * Next, you’ll want to do a search-&-replace on your database to change all url’s
   from your prior blog to a localhost installation. I personally use the script
   found at
    [https://interconnectit.com/products/search-and-replace-for-wordpress-databases/](https://interconnectit.com/products/search-and-replace-for-wordpress-databases/)
   but there are others out there & my personal use patterns in no way reflects 
   an endorsement of the product either by myself or the WordPress community at 
   large. I do not have any financial affiliation w/the vendors, in case that makes
   a difference. Disclaimers done.
 * 777 is a very bad file permission, especially on a remote server. If your blog
   is going to be on the internet via your local machine, then it’s also not a good
   permission setting there, either. Please remember to set passwords on your local
   box, as not doing so can render your machine highly insecure & expose you to 
   the possibility of being hacked even more than the majority of machines these
   days. If you’re going to run your blog from your local machine over the internet,
   then please also ensure your router is secured w/at least wpa2.
 * Please change all url’s & let’s see where we are.
 *  Thread Starter [notalentgeek](https://wordpress.org/support/users/notalentgeek/)
 * (@notalentgeek)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-7478385)
 * [@jackie](https://wordpress.org/support/users/jackie/) McBride
 * Holy McBride, it is working!!! Thanks. I can now log in into my dashboard.
 * There is a thing though. Although my themes is working again, my images are still
   missing. It refers me to localhost/blog_wordrpress/localhost/blog_wordpress/wp-
   content/… while it should go to localhost/blog_wordpress/wp-content/….
 * I tried to search and replace localhost/blog_wordrpress/localhost/blog_wordpress/
   with localhost/blog_wordrpress/ but there is no such entry in the database.
 * What should I do?
 *  [abletec](https://wordpress.org/support/users/abletec/)
 * (@abletec)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-7478389)
 * Hi, notalentgeek. Looks like there may be a misspelling here, i.e. localhost/
   blog_wordrpress. I’m thinking you need to search for localhost/blog_wordpress/
   localhost/blog_wordpress & replace it with localhost/blog_wordpress
 * Also, please make certain all letters in the url are lowercase. Check your spelling
   carefully, & I think that will solve your problem.
 * Let us know, ok?
 *  Thread Starter [notalentgeek](https://wordpress.org/support/users/notalentgeek/)
 * (@notalentgeek)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-7478396)
 * [@jackie](https://wordpress.org/support/users/jackie/) McBride
 * There is nothing wrong with typo. Actually there are two identical databases 
   in my PHPMyAdmin (that is why my search returns nothing) that stores posts from
   my blog. I am not sure how this can happen. Half of my posts, especially the 
   older posts are all fine. Only some newer posts have their images wrongly linked.
 * I will try to re – make my blog on different platform. This is so time consuming.
 * Thanks for your help.
 *  [ajeetkmishra](https://wordpress.org/support/users/ajeetkmishra/)
 * (@ajeetkmishra)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-9149040)
 * [@jackie](https://wordpress.org/support/users/jackie/) McBride
    I have same problem.
   My site is working fine in local host. When I host my site in remote all images
   and pages are working fine but wp-admin login error comes cookies are blocked
   or not supported your browser. The remote machine is linux. I contact with hosting
   provider they told me there is may be file permissions issue. And ask me give
   the exact file name which need write permission I provide that file for write
   permission. But I don’t know which is exact file.
 *  [abletec](https://wordpress.org/support/users/abletec/)
 * (@abletec)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-9149664)
 * [@ajeetkmishra](https://wordpress.org/support/users/ajeetkmishra/), please start
   your own topic regarding this. When doing so, please include a link to the site
   in question & whether or not your hosting is shared, VPS, or dedicated. You may
   also post a link to your topic here, if desired.
 *  [ajeetkmishra](https://wordpress.org/support/users/ajeetkmishra/)
 * (@ajeetkmishra)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-9149769)
 * [@jackie](https://wordpress.org/support/users/jackie/) McBride
    [https://wordpress.org/support/topic/cookies-blocked-or-cookies-not-supported/](https://wordpress.org/support/topic/cookies-blocked-or-cookies-not-supported/)

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

The topic ‘Yet again another cookie error while login.’ is closed to new replies.

## Tags

 * [cookie](https://wordpress.org/support/topic-tag/cookie/)
 * [login](https://wordpress.org/support/topic-tag/login/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [ajeetkmishra](https://wordpress.org/support/users/ajeetkmishra/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/yet-again-another-cookie-error-while-login/#post-9149769)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
