1 I'm trying to use ikiwiki for the first time. In the start, I had problems
2 with installing the package, because I don't have a root account on my
5 When I solved this, I finally set up my wiki, but whenever I try to edit a
6 page, I get an error: “Error: bad page name”.
8 What am I doing wrong? The wiki is at
9 <http://atrey.karlin.mff.cuni.cz/~onderka/wiki/>, the setupfile I used at
10 <http://atrey.karlin.mff.cuni.cz/~onderka/wiki/ikiwiki.setup>.
12 > This means that one of the checks that ikiwiki uses to prevent
13 > editing files with strange or insecure names has fired incorrectly.
14 > Your setup file seems fine.
15 > We can figure out what is going wrong through a series of tests:
17 > * Test if your perl has a problem with matching alphanumerics:
18 > `perl -le 'print int "index"=~/^([-[:alnum:]+\/.:_]+)$/'`
19 > * Check if something is breaking pruning of disallowed files:
20 > `perl -le 'use IkiWiki; %config=IkiWiki::defaultconfig(); print ! IkiWiki::file_pruned("index")'`
23 >>Both seem to run fine:
25 onderka@atrey:~$ perl -le 'print int "index"=~/^([-[:alnum:]+\/.:_]+)$/'
27 onderka@atrey:~$ perl -le 'use IkiWiki; %config=IkiWiki::defaultconfig(); print ! IkiWiki::file_pruned("index")'
30 >>> Try installing this [instrumented
31 >>> version](http://kitenet.net/~joey/tmp/editpage.pm) of
32 >>> `IkiWiki/Plugin/editpage.pm`, which will add some debugging info
33 >>> to the error message. --[[Joey]]
35 >>>>When I tried to `make` ikiwiki with this file, I got the error
37 ../IkiWiki/Plugin/editpage.pm:101: invalid variable interpolation at "$"
39 >>>>> Sorry about that, I've corrected the above file. --[[Joey]]
41 >>>>>> Hmm, funny. Now that I reinstalled it with your changed file, it started working. I didn't remember how exactly did I install it the last time, so this time, it seems I did it correctly. Thank you very much for your help.
43 >>>>>>> Well, this makes me suspect you installed an older version of
44 >>>>>>> ikiwiki and my file, which is from the latest version, included a
45 >>>>>>> fix for whatever bug you were seeing. If I were you, I'd ensure
46 >>>>>>> that I have a current version of ikiwiki installed. --[[Joey]]