Getting an ERROR: Cookies are blocked error when logging in to a site on a different domain?

The problem was I had the old multi-site method, which used sunrise.php.

I removed wpcontent/sunrise.php and the SUNRISE setting in wp-config.php

I then added the relevent settings from the accepted answer on a similar question and it worked.

define('ADMIN_COOKIE_PATH', "https://wordpress.stackexchange.com/");
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', ''); 

Leave a Comment