admin管理员组

文章数量:1332896

when you change domain or hosting or installation folder ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

when you change domain or hosting or installation folder ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

Share Improve this question asked Jun 25, 2018 at 11:27 Tushar UnhaleTushar Unhale 11 bronze badge
Add a comment  | 

3 Answers 3

Reset to default 0

In my case it was a plugin which I installed yesterday night. In the next day I got this error. SOLUTION : Deleted the plugin from wp-content/plugins and every thing was OK after that.

after searching lot q & a . did not get answer.

but after researching i got the mistake , i.e. path return in wp_config.php just write correct path i.e "/" . login cookie issue solved .

Don't edit functions.php.

Why ?

  1. Your WP site may stop responding
  2. An WP update might ignore the code in functions.php

Use FREE Snippets plugin to modify your WP sensitive code: https://wordpress/plugins/code-snippets/

setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

Just copy & paste code you need in a new snippet, and save.

Hope this helps!

本文标签: