I'm getting this error while trying to log in:
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
Yet I have cookies enabled and not blocked. I've tried this on a few different browsers, and in the incognito/private modes of those browsers, too, and get the same messages. I've also tried clearing all cookies from the cache, pursuant to the instructions on Mozilla Support. What could be causing this, and how would I go about debugging this issue?
I'm getting this error while trying to log in:
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
Yet I have cookies enabled and not blocked. I've tried this on a few different browsers, and in the incognito/private modes of those browsers, too, and get the same messages. I've also tried clearing all cookies from the cache, pursuant to the instructions on Mozilla Support. What could be causing this, and how would I go about debugging this issue?
Share Improve this question edited May 5, 2014 at 15:28 Pieter Goosen 55.4k23 gold badges115 silver badges210 bronze badges asked May 5, 2014 at 14:44 JonathanJonathan 4296 silver badges18 bronze badges 3 |3 Answers
Reset to default 5It turns out I had DOMAIN_CURRENT_SITE
set incorrectly in wp-config.php
. (This particular install was a copy of another server, and the domain hadn't fully been changed.)
This can happen if you have the wrong values for siteurl
and/or home
in your wp_options
table. Make sure these values match the DOMAIN_CURRENT_SITE
noted above.
The exact fix for the issue is to update this code:
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
in wp-config.php, but the important point in pasting is that you should exactly past the above code on a new line after this code in wp-config.php file.
define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );
Save and refresh the admin login page. Enter your correct credentials, all is well.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742371255a4431309.html
wp-config.php
file. Also do as @s_ha_dum said: Deactivate plugins, etc. – kaiser Commented May 5, 2014 at 15:17wp-config.php
. – Jonathan Commented May 5, 2014 at 15:41