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 2320
春和景丽
春和景丽 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条回答
  •  醉酒成梦
    2021-02-14 02:39

    Just ran into this issue on a Win2008 R2 server running IIS, when creating a user gave this (red) msg:

    Account creation error The user account was not created, as we could not confirm its source. Ensure you have cookies enabled, reload this page and try again.

    Also if a user tried to log into the Wiki, they would get this (red) msg:

    Login error (WikiName) uses cookies to log in users. You have cookies disabled. Please enable them and try again.

    Failed attempts:

    • I tried JesseG17's solution, but could not save changes to the localsettings.php file (despite stopping the server).
    • I checked permissions on the temp location, but that didn't help.
    • I changed tried changing the temp location via IIS's PHP manager, but that didn't change anything.

    What finally did work was to use IIS's PHP manager to change the MediaWiki's PHP settings; session.use_cookies from 0 to 1

    This solved the problem without any reboot.

提交回复
热议问题