How can I fix the MediaWiki error “Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.”?

前端 未结 12 2370
春和景丽
春和景丽 2021-02-14 02:03

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 w

12条回答
  •  猫巷女王i
    2021-02-14 02:22

    same thing may happen when memcached is used to store session files. in this case wiki will be unable to write cookies neither in / neither in /tmp. if you see in error.log something like "file not found (11211:9001/qweqweqweqweqe)" this will mean, that you have memchached installed and configured and you need to append the following lines in LocalSettings.php:

    $wgMainCacheType = CACHE_MEMCACHED; 
    $wgParserCacheType = CACHE_MEMCACHED; # optional 
    $wgMessageCacheType = CACHE_MEMCACHED; # optional 
    $wgMemCachedServers = array( "127.0.0.1:11211" );
    $wgSessionsInMemcached = true; # optional
    

提交回复
热议问题