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

JesseG17 picture JesseG17 · Apr 21, 2013 · Viewed 9.3k times · Source

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:

"Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again."

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.

Answer

JesseG17 picture JesseG17 · Apr 21, 2013

I found a fix, I'll put it in steps:

  1. Open LocalSettings.php
  2. Go to the bottom of the page, and enter in the following code: session_save_path("tmp");
  3. Create a directory called tmp in the folder where you have MediaWiki installed.