(no commit message)
[ikiwiki] / doc / forum / Error:_bad_page_name.mdwn
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
3 server.
4
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”.
7
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>.
11
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:
16
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")'`
21 > --[[Joey]] 
22
23 >>Both seem to run fine:
24
25     onderka@atrey:~$ perl -le 'print int "index"=~/^([-[:alnum:]+\/.:_]+)$/'
26     1
27     onderka@atrey:~$ perl -le 'use IkiWiki; %config=IkiWiki::defaultconfig(); print ! IkiWiki::file_pruned("index")'
28     1
29
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]] 
34
35 >>>>When I tried to `make` ikiwiki with this file, I got the error
36
37     ../IkiWiki/Plugin/editpage.pm:101: invalid variable interpolation at "$"
38
39 >>>>> Sorry about that, I've corrected the above file. --[[Joey]] 
40
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.
42
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]]