Add a patch tag
[ikiwiki.git] / doc / bugs / No___34__sid__34___in_forms_resulting_in_Error:_Your_login_session_has_expired..mdwn
1 Logged in and edited in textbox. Clicked preview and then clicked Save Page and it errored with:
2
3 Error: Your login session has expired.
4
5 I also did same without preview and got same error.
6
7 I added debugging to print the sid and session->id on the error. The sid was empty. The session->id was a long value (maybe base64).
8
9 View source of editing page or preview+edit page shows no "sid" input value. (I do see it when editing here in your ikiwiki site, but not on mine.)
10
11 > Further info. In the "prefs" dialog, it does have hidden "sid" defined. Viewing HTML source also shows this is in the  fb_hidden class and Generated by CGI::FormBuilder v3.0501. I tried multiple times and never see "sid" in the HTML source of editing a page. --[[JeremyReed]]
12
13 >> Found problem: Needed to update my editpage.tmpl to add TMPL_VAR FIELD-SID. This bug can be closed once that is documented -- and that documentation is obvious to find.
14
15 >>> Whenever you choose to locally copy an ikiwiki template and modify it,
16 >>> it's really up to you to keep it up-to-date. I did consider adding a
17 >>> new item about this rather than just mentioning it in the changelog,
18 >>> since I knew it would break locally modified templates -- but I've
19 >>> never documented template changes in the news file before, and most of
20 >>> them do lead to breakage of one kind or another if a locally modified
21 >>> template is not kept up-to-date. I don't think that bloating the news
22 >>> file with mentions of every single change to every template file would
23 >>> be a win. --[[Joey]]
24
25 >>>> I should have mentioned: yes, I already read the recent CHANGELOG
26 >>>> entries. If it (like changes for 2.42) had indicated this was a
27 >>>> template change, I would have known and wouldn't have filed the bug.
28 >>>> Also maybe the manpage for ikiwiki can mention about local template
29 >>>> modifications (I can fix that if not done.)
30
31 > Perhaps what I should do is put in a template version check. --[[Joey]]
32
33         <TMPL_UNLESS IKIWIKI_TEMPLATE_REVISION_20080428>
34         <p><b>This template is not up-to-date with the installed version of
35         ikiwiki, and may not behave correctly until updated.</b></p>
36         </TMPL_IF>
37
38 > Well, that don't look like as good an idea today.. I've documented the
39 > recent template change. --[[Joey]] [[!tag done]]