Wordpress admin login cookies blocked error after moving servers

后端 未结 15 1810
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 14:13

Background: had a working Wordpress 3.7 site at olddomain.com.

I moved it to newdomain.com successfully, and in the process added this to wp-config:

         


        
15条回答
  •  长情又很酷
    2020-12-24 14:39

    I experienced this due to my caching plugin.

    W3 Total Cache had added the following to my wp-config.php file:

    define('COOKIE_DOMAIN', 'www.olddomain.com'); // Added by W3 Total Cache
    

    Since it was hard coded, it didn't update to the new site domain. After deleting the added code (because I don't currently use the plugin), I was able to log in again.

    I'd check wp-config.php for the word "cookie" to see if a plugin might have added something like this.

提交回复
热议问题