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)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘Yet again another cookie error while login.’ is closed to new replies.