new bug about parsing recentchanges diffs
[ikiwiki.git] / doc / bugs / barfs_on_recentchange_entry_for_a_change_removing_an_invalid_pagespec.mdwn
1 I have a commit doing
2
3     -\[[map pages="link(tag/<TMPL_VAR name>) and !papers/*"]]
4     +\[[map pages="link(sourcepage()) and !papers/*"]]
5
6 ikiwiki now fails to compile the site, barfing:
7
8     Use of uninitialized value in subroutine entry at /usr/share/perl5/IkiWiki.pm line 1288.
9     ikiwiki.setup: Can't use string ("") as a subroutine ref while "strict refs" in use at /usr/share/perl5/IkiWiki.pm line 1288.
10     BEGIN failed--compilation aborted at (eval 6) line 200.
11
12 after forcefully entering the Perl mode of thinking, I reduced this to line
13 1285 of IkiWiki.pm (2.53), which apparently returns `undef`:
14
15     my $sub=pagespec_translate($spec);
16
17 Why does it even bother parsing the diffs of `recentchanges`?
18
19 I have not recompiled this site in ages, so I am not sure when this problem
20 was introduced, but it wasn't there when I worked on the site last about
21 a year ago in September 2007.
22
23 -- [[madduck]]