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

질문됨 4년 전1373회 조회
6개 답변
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
답변함 4년 전
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

답변함 4년 전
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

답변함 4년 전
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

답변함 4년 전
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.

답변함 4년 전
0

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

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠