Wordpress Multisite - ERROR: Cookies are blocked

0

Hi,

I was recently created a Amazon Lightsail - Wordpress Multisite but after add a new Site and assign a custom domain when i try to log in in the admin from the new site with the custom domain i receive the error :

"ERROR: Cookies are blocked or not supported by your browser. You must enable cookies"

Main Site url: xxxxxx.xip.io (can access to admin panel)
Site X with sudomain url: newsite.xxxxxx.xip.io (can access to admin panel)

Site X with custom domain url: newsite.com (can't access to admin panel)

I'm not trying to set the custom domain to the main site i'm trying to set the custom domain to new site in the multisite.

The tutorials of i can found are only for wordpress single site :/

Any suggestion?

Regards,
Lucas

asked 4 years ago1357 views
6 Answers
0

Hello,

I would follow this Bitnami doc to ensure you have properly assigned the new custom domain: https://docs.bitnami.com/general/apps/wordpress-multisite/configuration/configure-wordpress-multisite/

Alternatively, I've seen several Bitnami posts that claim there's a known issue in WordPress Multisite when using and IP and Google Chrome as a browser. It may be worth trying to access the admin panel with another browser, such as Firefox.

I hope this helps. Please reach out if you continue to have problems.

Thank you for using Amazon Lightsail!

-Maxwell

Maxwell
answered 4 years ago
0

Hi Maxwell,

I guess i followed all the steps of this tutorial .

I set a custom domain for the Main Site (works fine, site and dashboard)
And a custom domain for a New Site / other site (same error with Cookies are blocked when i'm try to log in to the dashboard)

I tested with 3 differents browsers.

I don't know what is goin on i find too much posts with this problem with no clear solutions :(

Regards,
Lucas

answered 4 years ago
0

Finally after DAYS, literally, I was able to get this resolved on the AWS Lightsail Bitnami Multisite Wordpress by performing the following:

Edit /opt/bitnami/apps/wordpress/htdocs/wp-config.php

Add the following:

define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');

Regards,
Lucas

answered 4 years ago
0

Finally after DAYS, literally, I was able to get this resolved on the AWS Lightsail Bitnami Multisite Wordpress by performing the following:

Edit /opt/bitnami/apps/wordpress/htdocs/wp-config.php

Add the following:

define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');

Regards,
Lucas

answered 4 years ago
0

Thank you, Lucas. That's exactly what I needed, after trying a few other combinations.

It's worth noting that it didn't fix the login on each site as soon as I entered the credentials, but then clicking refresh let me in and it worked great from then on.

answered 3 years ago
0

Thank you! This was incredibly helpful, did you have any other issues?

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions