每当用户登录我们的 Wiki 时,他们都会收到以下错误:“此 Wiki 使用 cookie 来登录用户。您已禁用 cookie。请启用它们并重试。”即使显示错误,用户实际上已登录并可正常进行编辑。如果用户不仔细看,他们无法告诉他们已登录,这会造成困惑,如果有人给我提示,我会很高兴
最佳答案
维基媒体的建议是
Check to make sure PHP's directory for storing session data is writable. This directory can be found in thephp.ini
file under thesession.save_path
setting. Errors in thisphp.ini
setting can also cause other problems.... (and) make sure the Internet Guest Account (eg. IUSR_FOOBAR, nobody, or apache) has write permissions to the folder listed in the
session.save_path
variable of the php.ini file.
Source.
如果您使用的是托管站点,则需要编辑 php 脚本配置 (php.ini)。该页面应该包含有关您的 Web 文档根目录的信息。如果已经创建了“tmp”文件夹,则使用它。如果当前设置中没有 tmp 文件夹,请创建一个用户无法浏览的文件夹,并按照上面的指示告诉 php.ini 文件位置。
关于cookies - mediawiki cookie 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1148583/