Last modified: 2010-05-15 15:38:21 UTC
I installed mediawiki on IIS recently (1.5.3) and I quickly find that could not
edit when logged in (I could on annonymous though! I disabled anonymous edit
So I tried to trace why this was happening by putting some echo in the php code
and found that
$request->getText('wpEditToken') was returning me a constant value no matter
what my browser was sending back.
As the comparaison is failing, $this->preview is then set to true and I can't
validate my changes, only preview them. This seems to be the root of all my
current problems (no updaload possible, can't stay logged if "remember me" tick
box is unticked...).
When editing a page and logged in:
The form do contain a wpEditToken value different each time (I checked the HTML
On commit, this value is then checked againstthe one retrieved by
Comparaison constantly fails because $request->getText('wpEditToken') is always
returning the same value (althouth $request->getText( 'wpSummary' ) is working).
Any help greatly appreciated
Running on Windows? Fix PHP's session save path setting to point to a directory that exists
and is writable, or logins don't work.
Thanks for your answer, I passed it to the administrators and it appears to be
The windows user account the website was running with had not write access to
the php sessions folder.
Everything is now working just fine.
(re-opened to correct resolution)