]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Ask about emailauth: Not enough arguments for IkiWiki::cgi_getsession
authorhttp://anastigmatix.net/ <http://anastigmatix.net/@web>
Mon, 15 Aug 2016 01:50:30 +0000 (21:50 -0400)
committeradmin <admin@branchable.com>
Mon, 15 Aug 2016 01:50:30 +0000 (21:50 -0400)
doc/forum/emailauth:_Not_enough_arguments_for_IkiWiki::cgi__95__getsession.mdwn [new file with mode: 0644]

diff --git a/doc/forum/emailauth:_Not_enough_arguments_for_IkiWiki::cgi__95__getsession.mdwn b/doc/forum/emailauth:_Not_enough_arguments_for_IkiWiki::cgi__95__getsession.mdwn
new file mode 100644 (file)
index 0000000..60da378
--- /dev/null
@@ -0,0 +1,20 @@
+I'm doing a (belated) update from a version before emailauth was available,
+and I get the error:
+
+    Failed to load plugin IkiWiki::Plugin::emailauth: Not enough arguments for IkiWiki::cgi_getsession
+
+and sure enough, emailauth.pm line 175 has
+
+    my $session=IkiWiki::cgi_getsession();
+
+while `cgi_getsession` is declared in CGI.pm as
+
+    sub cgi_getsession ($) {
+        my $q=shift;
+        ...
+
+and browsing through git history, it looks like it has always been that way.
+Now, I have some local mods merged in, so it is possible one of them has
+broken something, but before I begin questioning my sanity, just by looking
+at these lines in the unmodified ikiwiki repo, um, has this ever worked?
+And, why?