ikiwiki/ bugs/ done

recently fixed bugs

weird syntax in aggregate.pm
    open (IN, "$config{wikistatedir}/aggregate" ||
        die "$config{wikistatedir}/aggregate: $!");

It looks like the intent was "open this file, and die if you can't", but I'm pretty sure it actually means "open this file and ignore errors silently". Shouldn't this be open(IN, $file) || die "$file: $!"; (i.e. with the parens before the call to die)? --Ethan

Thanks, done --Joey

Posted Wed Nov 12 23:01:04 2008
xgettext issue

I ran into a problem when installing from svn. I got "invalid variable interpolation" errors for Wrappers.pm. I added the flag '--extract-all' to 'po/Makefile' and 'po/t' to the xgettext line. Once I did that I was able to make and make test just fine. --HarleyPig

It would be helpful if you could post the actual error message you saw. Also would be nice to know what versions of perl and gettext you have. Perhaps your xgettext is an older version from before it natively supported perl. Adding --extract-all doesn't seem like a good idea, since this causes it to treat every string in the entire wiki as translatable. I don't know what you're talking about regarding 'po/t'. --Joey

make[1]: Entering directory /home/www/ikiwiki/po' Rebuilding the pot file xgettext ../IkiWiki/CGI.pm ../IkiWiki/Plugin/aggregate.pm ../IkiWiki/Plugin/brokenlinks.pm ../IkiWiki/Plugin/camelcase.pm ../IkiWiki/Plugin/ddate.pm ../IkiWiki/Plugin/favicon.pm ../IkiWiki/Plugin/fortune.pm ../IkiWiki/Plugin/goodstuff.pm ../IkiWiki/Plugin/googlecalendar.pm ../IkiWiki/Plugin/haiku.pm ../IkiWiki/Plugin/html.pm ../IkiWiki/Plugin/htmlscrubber.pm ../IkiWiki/Plugin/htmltidy.pm ../IkiWiki/Plugin/httpauth.pm ../IkiWiki/Plugin/img.pm ../IkiWiki/Plugin/inline.pm ../IkiWiki/Plugin/linkmap.pm ../IkiWiki/Plugin/map.pm ../IkiWiki/Plugin/mdwn.pm ../IkiWiki/Plugin/meta.pm ../IkiWiki/Plugin/mirrorlist.pm ../IkiWiki/Plugin/openid.pm ../IkiWiki/Plugin/orphans.pm ../IkiWiki/Plugin/otl.pm ../IkiWiki/Plugin/pagecount.pm ../IkiWiki/Plugin/pagestats.pm ../IkiWiki/Plugin/passwordauth.pm ../IkiWiki/Plugin/poll.pm ../IkiWiki/Plugin/polygen.pm ../IkiWiki/Plugin/rawhtml.pm ../IkiWiki/Plugin/rst.pm ../IkiWiki/Plugin/search.pm ../IkiWiki/Plugin/shortcut.pm ../IkiWiki/Plugin/sidebar.pm ../IkiWiki/Plugin/skeleton.pm ../IkiWiki/Plugin/smiley.pm ../IkiWiki/Plugin/tag.pm ../IkiWiki/Plugin/template.pm ../IkiWiki/Plugin/textile.pm ../IkiWiki/Plugin/toc.pm ../IkiWiki/Plugin/toggle.pm ../IkiWiki/Plugin/typography.pm ../IkiWiki/Plugin/wikitext.pm ../IkiWiki/Rcs/Stub.pm ../IkiWiki/Rcs/git.pm ../IkiWiki/Rcs/mercurial.pm ../IkiWiki/Rcs/svn.pm ../IkiWiki/Rcs/tla.pm ../IkiWiki/Render.pm ../IkiWiki/Setup.pm ../IkiWiki/Setup/Standard.pm ../IkiWiki/UserInfo.pm ../IkiWiki/Wrapper.pm ../ikiwiki.in ../IkiWiki.pm -o ikiwiki.pot -Lperl --add-comments=translators ../IkiWiki/Wrapper.pm:64: invalid variable interpolation at "$" make[1]: *** [ikiwiki.pot] Error 1 make[1]: Leaving directory/home/www/ikiwiki/po' make: * [extra_build] Error 2

harleypig ikiwiki # xgettext --version

xgettext (GNU gettext-tools) 0.15

harleypig ikiwiki # perl -v

This is perl, v5.8.8 built for i686-linux

Sorry about the po/t report ... it was the test file I used to figure out what was wrong and I forgot to remove it. This is against the subversion repository, version 2338. The referenced line has a $! variable, which the documentation for gettext indicates is the problem.

Ok, I think that you need to upgrade xgettext to 0.16. However, there's no reason why you should need to rebuild the pot file anyway, so I've checked it into svn, and that's one problem done.

FWIW, I get the same error when building manually from SVN trunk on Ubuntu Edgy. I'm also using xgettext 0.15, because it's the latest version that's in the repos. However, I don't think that's the sole problem because I can build fine on another (Debian) box which is running 0.14.4... I know very little about gettext, but could this be related to my language settings? On the Edgy box I have LANGUAGE=en_GB:en and LANG=en_GB.UTF-8. The ikiwiki package installs on Edgy with no problems. --Ben

You'll only see the problem if it needs to rebuild po/ikiwiki.pot, which it generally doesn't if you're just building the package. If you edit files and build, it will rebuilt the pot and then fail with older gettexts. --Joey

I guess I'm confused then, because I do get that error when I just build. :-( To reproduce:

svn co svn://ikiwiki.kitenet.net/ikiwiki/trunk ikiwiki
cd ikiwiki
perl Makefile.PL
make

Then I see:

./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
./pm_filter /usr/local 1.44 /usr/local/share/perl/5.8.8 < ikiwiki.in > ikiwiki.out
make -C po
make[1]: Entering directory `/home/ben/tmp/ikiwiki/po'
Rebuilding the pot file
xgettext ../IkiWiki/CGI.pm ../IkiWiki/Plugin/aggregate.pm ../IkiWiki/Plugin/anonok.pm ../IkiWiki/Plugin/brokenlinks.pm ../IkiWiki/Plugin/camelcase.pm ../IkiWiki/Plugin/conditional.pm ../IkiWiki/Plugin/ddate.pm ../IkiWiki/Plugin/favicon.pm ../IkiWiki/Plugin/fortune.pm ../IkiWiki/Plugin/goodstuff.pm ../IkiWiki/Plugin/googlecalendar.pm ../IkiWiki/Plugin/haiku.pm ../IkiWiki/Plugin/html.pm ../IkiWiki/Plugin/htmlscrubber.pm ../IkiWiki/Plugin/htmltidy.pm ../IkiWiki/Plugin/httpauth.pm ../IkiWiki/Plugin/img.pm ../IkiWiki/Plugin/inline.pm ../IkiWiki/Plugin/linkmap.pm ../IkiWiki/Plugin/lockedit.pm ../IkiWiki/Plugin/map.pm ../IkiWiki/Plugin/mdwn.pm ../IkiWiki/Plugin/meta.pm ../IkiWiki/Plugin/mirrorlist.pm ../IkiWiki/Plugin/more.pm ../IkiWiki/Plugin/opendiscussion.pm ../IkiWiki/Plugin/openid.pm ../IkiWiki/Plugin/orphans.pm ../IkiWiki/Plugin/otl.pm ../IkiWiki/Plugin/pagecount.pm ../IkiWiki/Plugin/pagestats.pm ../IkiWiki/Plugin/passwordauth.pm ../IkiWiki/Plugin/poll.pm ../IkiWiki/Plugin/polygen.pm ../IkiWiki/Plugin/prettydate.pm ../IkiWiki/Plugin/rawhtml.pm ../IkiWiki/Plugin/rst.pm ../IkiWiki/Plugin/search.pm ../IkiWiki/Plugin/shortcut.pm ../IkiWiki/Plugin/sidebar.pm ../IkiWiki/Plugin/signinedit.pm ../IkiWiki/Plugin/skeleton.pm ../IkiWiki/Plugin/smiley.pm ../IkiWiki/Plugin/tag.pm ../IkiWiki/Plugin/template.pm ../IkiWiki/Plugin/textile.pm ../IkiWiki/Plugin/toc.pm ../IkiWiki/Plugin/toggle.pm ../IkiWiki/Plugin/typography.pm ../IkiWiki/Plugin/wikitext.pm ../IkiWiki/Rcs/Stub.pm ../IkiWiki/Rcs/git.pm ../IkiWiki/Rcs/mercurial.pm ../IkiWiki/Rcs/svn.pm ../IkiWiki/Rcs/tla.pm ../IkiWiki/Render.pm ../IkiWiki/Setup.pm ../IkiWiki/Setup/Standard.pm ../IkiWiki/UserInfo.pm ../IkiWiki/Wrapper.pm ../ikiwiki.in ../IkiWiki.pm -o ikiwiki.pot -Lperl --add-comments=translators
../IkiWiki/Wrapper.pm:64: invalid variable interpolation at "$"
make[1]: *** [ikiwiki.pot] Error 1
make[1]: Leaving directory `/home/ben/tmp/ikiwiki/po'
make: *** [extra_build] Error 2

Other than installing a newer version of gettext from outside of the repos, is there any workaround?

It's probably because you're pulling it from svn, and I don't always update the pot file every time I commit to svn. So this will affect svn checkouts, but not released tarballs. Anyway, I put in a workaround.. done --Joey

Posted Wed Nov 12 23:01:04 2008
wikilink in table

I try to create wikilink in table. But it does not work. Here is example:

[[table class=table1 data="""
[[wikilink_test|index]]
[[wikilink_test\|index]]
[wikilink test](/servers/webmail1)
"""]]

First two wikilink entries do not work.

The last one is url link and it works but it is not a wikilink. Or maybe it does not matter if I use URL links in stead of wikilinks for local wiki content?

fixed --Joey

works !! Great!

What exactly is a difference between wikilink and URL reference to the same page ?

ikiwiki will not be able to track pages linked using urls as having a link.

Trying to report this I found something weird. I changed in the example [[ with || because wiki renders something wrongly. You can see what I tried originally here:

[[table class=table1 data="""
[[wikilink_test|servers/webmail1]]
[[wikilink_test|servers/webmail1]]
[wikilink test](/servers/webmail1)
"""]]

Please click edit to see unrendered text. First, it is not monospace-d (I have 4 spaces) and second, some wierd html is shown... Am I doing something wrong ?

See above for the right way to do it. Note that I also fixed a minor bug in ikiwiki to allow this. --Joey

Just curious ... if I wanted to have that block in monospace (four spaces in front of each line), how can I do that ?

Posted Wed Nov 12 23:01:04 2008
wrong permissions on some files in source

A few files in the source are only readable by root: ikiwiki/basewiki/favicon.ico ikiwiki/doc/logo/ikiwiki_large.png ikiwiki/doc/logo/ikiwiki.svgz ikiwiki/templates/atomitem.tmpl ikiwiki/templates/atompage.tmpl

This means that (depending on installation) maybe the permissions are wrong for the final install. So when ikiwiki is ran (as non-root) it fails.

done (in my tree) --Joey

Posted Wed Nov 12 23:01:04 2008
wiki formatting does not work between toc and an inline

Wiki formatting between [[toc ]] and an inline fails to render. The problem does not seem to trigger if the inline uses the titlepage template, or if it doesn't match any pages. See example below; also reproducible with a single-file wiki containing the text below, rendered via ikiwiki --plugin toc.

This is bug #421843, and I suspect it affects certian other plugins that also use empty divs as placeholders. It's fixed in markdown 1.0.2 b7 (available in debian experimental). So I'll close this as it's not really an ikiwiki bug. --Joey

not bold

not fixed-pitch

heading not rendered

not a link

new domain name Ikiwiki has its own domain now, ikiwiki.info. Update your links. Posted Wed Nov 12 23:01:04 2008

bold

fixed-pitch

heading rendered

a link

Posted Wed Nov 12 23:01:04 2008
wrong rss url when inside another blog-like page

I have a blog-like page collecting item, that's ok, display is good, rss url is correct. In some of the items, I have another rss. When viewing the item itself, url of the rss is correct. But when viewing the item inside the main page, the basepath of the rss is wrong, thus the url doesn't go anywhere.

For example :

(1) a blog-like page which is collecting tag entry :

(2) a tag item "foo" which is containing a rss, listing all the foo-tagged pages.

(3) when viewing /tag.html

Is it a bug or did I miss something ?

I've fixed at least two bugs in this area in the unreleased ikiwiki in subversion, one just now. If you still see the problem using the ikiwiki version in subversion, it would be helpful if you could post a tarball of your wiki, or a test case derived from it that I can use to reproduce the problem --Joey

Joey, thank you, it's ok now. (since the version 1.40, AFAIK, maybe earlier) --Hugues (hb)

Thanks for the followup, tagging this done.

Posted Wed Nov 12 23:01:04 2008
weird signature in match_included()

Is this a bug? IkiWiki/Plugins/conditional.pm:

sub match_included ($$;$) { #{{{

The other match_XXX functions seem to take ($$;@). --Ethan

indeed, done --Joey

Posted Wed Nov 12 23:01:04 2008
unrecognized "do=blog" CGI parameter when creating todo item

While I am creating this entry, the following appears as the page title, above the form:

ikiwiki/ creating unrecognized "do=blog" CGI parameter when creating todo item

An the following appears below:

Content-type: text/html
ikiwiki/ Error

Error: unknown do parameter

This is harmless. I have to go, but will have a look at what could be going on when I'm back.

--JeremieKoenig

fixed --Joey

Posted Wed Nov 12 23:01:04 2008
Disappearing Pages

I have a problem where pages within the rendered wiki become empty. The headers, footers, and sidepanel are there, but the body is completely missing. If I do a webedit and change anything (adding whitespace is enough) and commiting the change updates the page and the body appears. If I then do a rebuild of the wiki from the command line, I get the blank pages again. I have debug turned up but I don't see anything that makes me suspect anything. When I do a rebuild from the command line I get the following warning.

Use of uninitialized value in substitution (s///) at /usr/share/perl5/IkiWiki/Plugin/inline.pm line 234.

The odd thing is that I have 5 other wikis on this same system and none of them seem to be experiencing the same problems. The only difference seems to be the use of sidebars and google calendar in the affected wiki.

Could you post a tarball of the wiki and any setup file you use somewhere so I can try to reproduce your problem? --Joey

The Wiki I think it has something to do with the plugin selection. --ScottHenson

Ok, I built your wiki, and got no contentless pages here. I also didn't see the uninitialized value warning, which could be connected. However, I that uninitialized value come from an inline directive, and the wiki source doesn't seem to use inlining at all, so I'm confused about that. --Joey

Sorry, thats my fault. The wiki that was having the problem had some information that I couldn't distribute. So I reproduced the bug on another wiki and sent you that. Those warnings don't seem to have any effect on the disappearing content. Sorry for the confusion. --ScottHenson

That's ok, but since I couldn't reproduce it with the data you sent, I can't really fix it. --Joey

Can you not reproduce the warning or not reproduce the disappearing pages? The warning does not seem to have anything to do with the error of the disappearing pages. --ScottHenson

I can't reproduce any disappearing text. --Joey

Marking this unreproducible. --Joey

Posted Wed Nov 12 23:01:03 2008
special characters in tag names need manual escaping

Having read i18ncharactersinposttitle, I have a page named St John's in a file named St_John__39__s.mdwn. Regular wikilinks like \[[St_John's]] successfully point to that page. However, if I tag a page with [[tag St_John's]], that link is shown as pointing to a non-existant page. Modify the tag to read [[tag St_John__39__s]] works around the problem.

done in 1.49 --Joey

Posted Wed Nov 12 23:01:03 2008