mhemstrom
Forum Replies Created
-
Hi,
Is there anyone that can help with this issue? Or am I the only one that is using multisite with sub-sites (with different domain name).
As mentioned above I get the following error when I try to login to the sub-sites.
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
Adding this to wp-config.php solved the issue for me, but this was a security risk, so I removed it.
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);Your assistance in this matter is very much appreciated.
Regards,
MarkusHi,
Thank you for your reply.
I tried https://domain3.com/wp-admin
This is the URL I used from the very beginning of this thread for the sub-sites. When I use this URL for each sub-site, then I receive the following error as mentioned previously.
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
When this error is displayed the URL is
https://domain3.com/wp-login.phpAlso, this is the URL when the sub-site login screen shows after entering https://domain3.com/wp-admin
Is this a mapping/re-direct issue maybe?
Regards,
MarkusHi,
Thank you for your reply.
So I removed the following in wp-config.php
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);Then I created a new user for each sub-sites with administrator privileges and generated a password for each user.
Then I went to My Sites/Network Admin/Sites and selected one sub-site and copied the URL as mentioned, in this case sub-domain with id 7
The URL copied shows domain1 (main site) even though it is for domain3, so if I use this URL then I get the following error when I try to login with the user created for sub-domain domain3.
Sorry, you are not allowed to edit this site.
https://domain1.com/wordpress/wp-admin/network/site-info.php?id=7
Then I try to modify the URL and add the correct domain name for this sub-site, like this
https://domain3.com/wordpress/wp-admin/network/site-info.php?id=7
Then it redirect to this and I tried to login with the sub-site user with administrator privileges, yet get the following error
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
What am I missing there?
Regards,
MarkusHi,
This solved the login issue (ERROR: Cookies are blocked) for the subsites.
Added in wp-config.php file above “/* That’s all, stop editing! Happy blogging. */”
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);Regards,
MarkusThank you for your reply.
I tested to create a new site in “Network admin/Sites/Add New” and I was able to map another domain name to this sub-site and I can visit the sub-site.
Yet, I am not able to login to the dashboard for the sub-site now. I can however login to the main site with no issues.
I get the following error after trying to login (via web GUI) with username and password. I even created another user for this sub-site as a test. I cleared browser cache and history several times as well.
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
I did some googling and found that this might solve the issue, to add the following line in the wp-config.php file. Yet did not solve the issue.
Tried to add
define(‘COOKIE_DOMAIN’, false);
And tried this
define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );
This is part of my wp-config.php file
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );define(‘WP_ALLOW_MULTISITE’, true);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘xxxxx.xxxxxxx.net’);
define(‘PATH_CURRENT_SITE’, ‘/wordpress/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);define(‘COOKIE_DOMAIN’, false);
Your assistance is appreciated in this matter.
Regards,
Markus