]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn
* Fix --locale to control LC_ALL now.
[ikiwiki.git] / doc / bugs / Problem_with_editing_page_after_first_SVN_commit.mdwn
1 I have a strange problem with editing any page after its first SVN commit.
2 I'm not sure whether it's my ikiwiki backport bug or my misunderstanding
3 how ikiwiki works.
4
5 Assume that I have Foo page with any content and I want to put there link
6 to Bar page and next create the page. I do following steps:
7
8 1. Click Edit link on Foo page
9
10 2. Put the link to Bar page there and commit it by clicking "Save Page"
11   button
12
13   The Bar page is rendered correctly and now I can see ?Bar link. The URL
14   in the address bar of my browser is
15
16   http://my.host.com/wiki/foo.html?updated
17
18 3. Click ?Bar link
19
20   Now I can see textarea for editing of page. It's empty, of course.
21
22   The page doesn't exists in my SVN repo yet and my Apache server knows
23   noting about it:
24
25         $ find /my/ikiwiki/src/dir/ -type f -name bar.mdwn
26         $ find /my/ikiwiki/dst/dir/ -type f -name bar.html
27
28 4. Add some initial content and click "Save Page" button
29   to commit changes
30
31   The Foo page also is rendered correctly and now I can see what I wrote.
32   The URL in the address bar of my browser is
33
34   http://my.host.com/wiki/bar.html?updated
35
36   The page was added to the SVN repo and my Apache is able to serve it now:
37
38         $ find /my/ikiwiki/src/dir/ -type f -name bar.mdwn
39         /my/ikiwiki/src/dir/bar.mdwn
40         $ find /my/ikiwiki/dst/dir/ -type f -name bar.html
41         /my/ikiwiki/dst/dir/bar.html
42
43 5. Change the content of Bar page by clicking Edit link
44
45   I can't do it, because the textarea is empty again. I have to run
46   `ikiwiki --setup ikiwiki.setup` command by hand to rebuild the page.
47   Then I can edit it.
48
49 Where is my mistake?
50
51 --Pawel
52
53 > It's not clear which Edit link you clicked in step 5. Is it the link on
54 > the new page, or the old link back on page Foo that you clicked on before
55 > to create Bar? It would also be good to see the URL you're at in step 5.
56 > --[[Joey]]
57
58 >> It was Edit link on new Bar page, of course. The URL in step 5 was
59 >> http://my.host.com/wiki/ikiwiki.cgi?page=bar&do=edit.
60
61 >> I've forget to add in my previous post that $pagesources{$page}
62 >> (cgi_editpage subroutine of /usr/share/perl5/IkiWiki/CGI.pm file)
63 >> doesn't exist in step 5. It exists after rebuilding all ikiwiki
64 >> pages by hand.
65
66 >> BTW, where does ikiwiki store information about rendered pages?
67 >> Is it `/my/ikiwiki/src/dir/.ikiwiki/` directory?
68
69 >> --Pawel
70
71