Page MenuHomePhabricator

Error "Your session data was lost! Check your php.ini and make sure session.save_path is set to an appropriate directory." comes up while installing MediaWiki.
Closed, DuplicatePublic

Description

I got the following error while installing MediaWiki 1.27 Alpha: "Your session data was lost! Check your php.ini and make sure session.save_path is set to an appropriate directory.". I don't face the same problem when I install the stable version i.e. Mediawiki 1.26.2.

When I install MediaWiki 1.26.2, it works fine:

When I install MediaWiki 1.27 alpha, it gives me an error:

Event Timeline

ananayarora raised the priority of this task from to Needs Triage.
ananayarora updated the task description. (Show Details)
ananayarora added subscribers: ananayarora, Aklapper, Legoktm and 4 others.
Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptJan 26 2016, 8:25 PM
matmarex set Security to None.Jan 26 2016, 9:33 PM
matmarex edited subscribers, added: Anomie; removed: matmarex.

Update: The problem is being caused by using session_name() in includes/installer/WebInstaller.php in Mediawiki 1.27 Alpha. I guess the use of this function isn't required and the installation works without that.

Change 266779 had a related patch set uploaded (by Ananay):
Session Errors occuring while installing MediaWiki

https://gerrit.wikimedia.org/r/266779

Can't reproduce using current master. You'll likely want to do more debugging to figure out exactly why it's failing for you.

Yep this problem happends to me where as before it didn't.

I'm using mediawiki 1.27 wmf13.

Change 266779 abandoned by Anomie:
Session Errors occuring while installing MediaWiki

Reason:
Since this was probably fixed in three different better ways by the patches on T126177, let's abandon this patch to avoid other people coming along and thinking it's still necessary.

https://gerrit.wikimedia.org/r/266779