(no commit message)
[ikiwiki.git] / 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