简体   繁体   English

Mediawiki不举行会议

[英]Mediawiki doesn't hold Session

I am using Mediawiki 1.23.6. 我正在使用Mediawiki 1.23.6。 Since a few days it is not longer possible to log in "normally". 由于几天了,因此不再能够“正常”登录。 I always have to click the checkbox "keep me logged in". 我总是必须单击“保持登录状态”复选框。 Otherwise the Wiki tells me I am not logged in when I try to edit an article. 否则,当我尝试编辑文章时,Wiki会告诉我我尚未登录。 But when I go to the login it says "You are already logged in as ....". 但是,当我转到登录名时,它显示“您已经以....身份登录”。 This does not happen when I click keep me logged in. Cookies are enabled in all browsers. 当我单击“保持登录状态”时,不会发生这种情况。在所有浏览器中都启用了Cookie。

When I try now to upload a picture (tried different filetypes) it gives back a message like "Your edit couldn't be saved. Sessiondata were lost". 现在,当我尝试上传图片(尝试使用不同的文件类型)时,它会返回一条消息,例如“无法保存您的编辑。Sessiondata丢失了”。

So it seems to have a problem to save sessions at all. 因此,保存会话似乎有一个问题。 I already set the session_save_path to a writeable folder and files are stored there. 我已经将session_save_path设置为可写文件夹,并且文件存储在该文件夹中。

This sounds like a memcached issue . 这听起来像是内存缓存问题 The log you posted confirms you have memcached enabled, but it's probably not working correctly (please delete that log file now, you shouldn't be sharing that private data!). 您发布的日志确认您已启用Memcached,但它可能无法正常工作(请立即删除该日志文件,您不应该共享该私有数据!)。

Your wiki is not huge, only some 1300 pages and 200k visits. 您的Wiki并不庞大,只有1300页和20万次访问。 Are you sure you really need memcached? 您确定您确实需要memcached吗? I suggest that you disable it, configure APC (warning, replaced by OPcache in PHP 5.5) and go through the other performance tuning steps first. 我建议您禁用它,配置APC(警告,在PHP 5.5中由OPcache代替),然后首先执行其他性能调整步骤。

Then, if you still have a need for it, try to use memcached as well, but be more careful in its configuration. 然后,如果仍然需要它,请尝试也使用memcached,但在配置时要格外小心。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM