aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorhttp://joeyh.name/ <joey@web>2013-03-04 13:21:27 -0400
committeradmin <admin@branchable.com>2013-03-04 13:21:27 -0400
commitdb16c8d8ef56ca7467b38854b5edef49996e0a5b (patch)
tree646b9776213a3682f277154325d09c1fee90acaa /doc/bugs
parentd72e5fd58c121582b2a2a1feca39596c29a1feb0 (diff)
downloadikiwiki-db16c8d8ef56ca7467b38854b5edef49996e0a5b.tar
ikiwiki-db16c8d8ef56ca7467b38854b5edef49996e0a5b.tar.gz
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/undefined_value_as_a_HASH_reference.mdwn13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/bugs/undefined_value_as_a_HASH_reference.mdwn b/doc/bugs/undefined_value_as_a_HASH_reference.mdwn
index 384e09336..2c470e096 100644
--- a/doc/bugs/undefined_value_as_a_HASH_reference.mdwn
+++ b/doc/bugs/undefined_value_as_a_HASH_reference.mdwn
@@ -49,3 +49,16 @@ I'm on Debian unstable.
Thanks,
-Michal
+
+> Some plugin has a broken getsetup hook, and is feeding a corrupted setup list in. Both the websetup and the auto.setup files cause all plugins to be loaded and all their setup to be available.
+>
+> This command will help you find the plugin. Here it prints some noise around the rst plugin, for unrelated reasons,
+> but what you're looking for is the plugin printed before the "even sized list" message.
+
+<pre>
+perl -le 'use warnings; use strict; use Data::Dumper; use IkiWiki; %config=IkiWiki::defaultconfig(); use IkiWiki::Setup; my @s=IkiWiki::Setup::getsetup(); foreach my $pair (@s) { print "plugin ".$pair->[0]; my $setup=$pair->[1]; if ($pair->[0] eq "rst") { print Dumper($setup)} my %s=@{$setup} }'
+</pre>
+
+> I was able to replicate this by making a plugin's getsetup hook return a list reference, rather than a list,
+> and have put in a guard against that sort of thing.
+> --[[Joey]]