ERROR: Cookies are blocked or not supported by your browser

I'm getting this error while trying to log in: ERROR: Cookies are blocked or not supported by your browser. You mus

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
  • Disable your plugins and switch to a bundled theme like "Twenty Fourteen". Do you still have the problem? – s_ha_dum Commented May 5, 2014 at 15:06
  • Please file an edit and show your wp-config.php file. Also do as @s_ha_dum said: Deactivate plugins, etc. – kaiser Commented May 5, 2014 at 15:17
  • 1 @kaiser, Thanks, that was it. It was a domain set incorrectly in wp-config.php. – Jonathan Commented May 5, 2014 at 15:41
Add a comment  | 

3 Answers 3

Reset to default 5

It 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

相关推荐

  • ERROR: Cookies are blocked or not supported by your browser

    I'm getting this error while trying to log in: ERROR: Cookies are blocked or not supported by your browser. You mus

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信