1 I get the following error when building my wiki
3 Argument "\x{3c}\x{54}..." isn't numeric in numeric eq (==) at /usr/share/perl5/IkiWiki.pm line 2547.
4 Argument "\x{3c}\x{54}..." isn't numeric in numeric eq (==) at /usr/share/perl5/IkiWiki.pm line 2547.
6 that line corresponds to
8 sub match_creation_year ($$;@) {
9 if ((localtime($IkiWiki::pagectime{shift()}))[5] + 1900 == shift) { <-- this one
10 return IkiWiki::SuccessReason->new('creation_year matched');
13 A git bisect shows that the offending commit introduced this hunk
17 +++ b/templates/all_entry.mdwn
28 +log/* and !tagged(aggregation) and !*/Discussion and !tagged(draft)
29 +and creation_year(<TMPL_VAR year>)
30 +and !*.png and !*.jpg
38 + log/* and !tagged(aggregation) and !*/Discussion and !tagged(draft)
39 + and creation_year(<TMPL_VAR year>)
40 + and !*.png and !*.jpg
41 + " archive=yes feeds=no]]
43 The lines which feature creation_year(<TMPL_VAR year>) are most likely the culprits. That would explain why the error was repeated twice, and would tally with the file in `templates/` being rendered, rather than the inclusionists.
45 A workaround is to move the template outside of the srcdir into the external templates directory and include the file suffix when using it, e.g.
47 \[[!template id=all_entry.tmpl year=2010 current=true]]
49 I believed (until I tested) that the [[ikiwiki/directive/if]] directive, with the `included()` test, would be an option here, E.g.
51 \[[!if test="included()" then="""
57 However this doesn't work. I assume "included" in this context means e.g. via an `inline` or `map`, not template trans-clusion. -- [[Jon]]
59 > As far as I know, this bug was fixed in
60 > 4a75dee651390b79ce4ceb1d951b02e28b3ce83a on October 20th. [[done]] --[[Joey]]
62 >> Sorry Joey, I'll make sure to reproduce stuff against master in future. [[Jon]]