dongyinzheng6572 2014-09-09 09:47
浏览 139
已采纳

Localhost - 您的浏览器阻止或不支持Cookie

I just set up this multisite wordpress on my localhost. It consists of a domain (local.mydomain.com) and 2 subdomains (local.site2.mydomain.com and local.site3.mydomain.com).

Everything works perfectly for the root domain, I can log in and go to the backend just fine, but when I try to log into any of the subdomains I get the "Cookies are blocked or not supported by your browser." error.

  • Yes, my cookies are enabled.
  • I tried the wp-config define hack
  • Cleared cache
  • Disabled plugins and themes
  • Updated to 4.0

I realize this has been posted many times before, but I haven't seen a recent post for this nor I have seen the multisite in localhost version of that error.

Hopefully someone can help me out. Cheers!

  • 写回答

1条回答

  • drz5553 2015-10-09 11:07
    关注

    You said "I tried the wp-config" define hack. I'm not sure what you mean by that but in my case it worked by setting the one below in the wp-config.php file:

    define('COOKIE_DOMAIN', false);

    One the other hand, if you are using Apache as a web server then check in your Apache configuration if you have enabled mod_security turned ON. This will prevent, among others, the cookie thing. So if it is enabled then just try to disable this module and check again. If it is the cause of the problem then check its configuration, particularly any settings related to cookies.

    The settings for this Apache module may be stored within a file named modsecurity.conf. They may be found even in Apache's httpd.conf as well. You got the idea, anyway.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办