Page MenuHomePhabricator

MediaWiki doesn't want to save when logged in
Closed, ResolvedPublic


Author: guaka

Version 1.4.0.

MediaWiki doesn't want to save when logged in. I constantly says "Prévisualiser
Note : Attention, ce texte n'est qu'une prévisualisation et n'a pas encore été
sauvegardé!". When not logged in it's working fine. It could be that it's only a
problem with the admin account.

And actually, just now I'm finding some more very peculiar things. When creating
a new user, I'm immediately logged out. It seems I can only log in as root.

No cookie problem...

Later more. No time right now.

Version: unspecified
Severity: major
OS: Linux
Platform: PC



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:16 PM
bzimport set Reference to bz1819.
bzimport added a subscriber: Unknown Object (MLST).

Fix your session storage, most likely you are on a server farm where PHP sessions are erroneously stored on the local /tmp
drive instead of a shared location.


xarses wrote:

Ok, ive fixed the issue. however according to the user posts this is something that should have been set before. and
perhapse even be listed in the common bug sections.

it should be noted that designofgod's is correct but your /tmp directory on SF has to have permissions of 777 or you

designofgod at yahoo dot com
14-Feb-2005 07:12
sometime you need to change session.save_path because server system distributed more then one machine and you can
not reach php.ini file example Then you can do that with .htaccess file which is kind of
configuration file for Apache under one directory. anyway I added

php_value session.save_path /home/groups/f/f4/f4l/tmp/

now my sessions work very well I hope :)


xarses wrote:

umm... sorry this wasnt my bug, but it did help fix my bug. and may help you with yours

goanookie wrote:

Having the same problem, once logged in saving an edit always results in
previewing the edit.
This happend after an upgrade from 1.3.11 to 1.4.3. Also can conform it is not a
cookie problem.
and it runs on a single server.
And for tommorow start logging everything at debug level, a bit overkill but it
may give some details.

MediaWiki: 1.4.3
PHP: 4.3.11
MySQL: 4.0.24

goanookie wrote:

A little update, upgrading to 1.4.4 didn't also solved this problem.

goanookie wrote:

The possible solution mention in comment 2 didn't solved it but after being
pointed in the right direction, thanks again Brion, I found that there was one
line in php.ini that was different compared to the php.ini-dist. Double checked
it on a local wiki on another machine which didn't have this problem.

This line:
session.referer_check = 3600

I change the line to this:
session.referer_check =

and after a restart of apache, logged in user could save their edits again.

mediazilla wrote:

I just encounter this bug on a brand new wiki I just created, but I have no way of accessing the
php.ini at my provider (
I guess there should be a way to correct this in the MediaWiki code rather than on php.ini.
Any idea ?

Please don't reopen a bug because you have a support request on how to
configure your machine.

Contact your provider and/or see the PHP documentation at