web commit by http://ptecza.myopenid.com/: * Missing Apache2 version
[ikiwiki.git] / doc / bugs / attachment:_failed_to_get_filehandle.mdwn
1 I can't add any attachment to my wiki. When I select file using "Browse"
2 button and click "Upload Attachment", then `ikiwiki.cgi` file displays
3 the error message like below:
4
5     Błąd: failed to get filehandle
6
7 > Can you do some debugging? If you edit attachment.pm line 136, to print
8 > out what it did get, and show me what that yields, maybe I can figure
9 > this out.
10
11         error("failed to get filehandle ($fh)");
12
13 >> Sure. I've done the change and it seems that $fh variable is undefined:
14
15 >>     Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/IkiWiki/Plugin/attachment.pm line 135.
16 >>     failed to get filehandle ()
17
18 > Also, what web server and version of perl is this? --[[Joey]]
19
20 >> It's Apache2 2.2.8-1ubuntu0.3 and Perl 5.8.8-12 from Ubuntu Hardy. --[[Paweł|ptecza]]
21
22 The same message I can see in the Apache log file. There is also
23 following warning:
24
25     Use of uninitialized value in length at /usr/share/perl5/IkiWiki/Plugin/attachment.pm line 36.
26
27 > This is unrelated, I've fixed the warning message. --[[Joey]]
28
29 Is it Ikiwiki bug or my attachment plugin is misconfigured? --[[Paweł|ptecza]]
30
31 > Joey, please fix the colon in page name of my report. [...]
32
33 >> Moved to [[colon:problem]] --[[Joey]]