admin管理员组文章数量:1122846
I am getting the following error:
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
When trying to login to a network site on a different domain with version 5.0.2
WordPress.
I can login to the primary site, but when going to the dashbaord of the secondary site it redirects to the login screen on the different domain and gives the cookie error.
Relevant wp-config.php
settings:
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'number1.co.za');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* MU Domain Mapping */
define( 'SUNRISE', 'on' );
How can I fix this?
I am getting the following error:
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
When trying to login to a network site on a different domain with version 5.0.2
WordPress.
I can login to the primary site, but when going to the dashbaord of the secondary site it redirects to the login screen on the different domain and gives the cookie error.
Relevant wp-config.php
settings:
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'number1.co.za');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* MU Domain Mapping */
define( 'SUNRISE', 'on' );
How can I fix this?
Share Improve this question edited Jan 2, 2019 at 15:52 tread asked Jan 2, 2019 at 15:49 treadtread 1192 silver badges7 bronze badges1 Answer
Reset to default 1The 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', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
本文标签: multisiteGetting an ERROR Cookies are blocked error when logging in to a site on a different domain
版权声明:本文标题:multisite - Getting an ERROR: Cookies are blocked error when logging in to a site on a different domain? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736306501a1932980.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论