如何解决MediaWiki错误“Wiki使用Cookie登录用户。您已禁用Cookie。请启用它们,然后重试。“ [英] How can I fix the MediaWiki error "Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again."?
问题描述
我遇到的问题是,我无法登录到我使用MediaWiki创建的wiki。我在网络上搜索了一个答案,我发现的答案并没有帮助解决这个问题(像这样:与mediawiki cookies的问题)我尝试过多个浏览器,并更改了设置,以确保启用cookies,但我仍然得到相同的错误:
The problem I am having is that I can not log on to my newly created wiki that I made using MediaWiki. I have searched the web for an answer, and the ones I found did not help with this specific issue (like this one: problem with mediawiki cookies) I have tried with multiple browsers and changed the setting to make sure that cookies are enabled, but I keep getting the same error:
维基使用cookie登录用户。您已禁用Cookie,请启用它们,然后重试。
"Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again."
我不知道这是否是我的当前版本的PHP,这是目前的5.3,或在我的wiki中的一个设置的问题。
I'm not sure whether this is a problem with my current version of PHP, which is currently 5.3, or a setting in my wiki.
推荐答案
我找到一个修正,我会按步骤:
I found a fix, I'll put it in steps:
- 打开
LocalSettings.php
- 转到页面底部,以下代码:
session_save_path(tmp);
- 创建一个名为
tmp
在安装MediaWiki的文件夹中。
- Open
LocalSettings.php
- Go to the bottom of the page, and enter in the following code:
session_save_path("tmp");
- Create a directory called
tmp
in the folder where you have MediaWiki installed.
这篇关于如何解决MediaWiki错误“Wiki使用Cookie登录用户。您已禁用Cookie。请启用它们,然后重试。“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!