2008-07-08 12:29:20 +02:00
|
|
|
I can't add any attachment to my wiki. When I select file using "Browse"
|
|
|
|
button and click "Upload Attachment", then `ikiwiki.cgi` file displays
|
|
|
|
the error message like below:
|
|
|
|
|
|
|
|
Błąd: failed to get filehandle
|
|
|
|
|
2008-07-08 15:46:29 +02:00
|
|
|
> Can you do some debugging? If you edit attachment.pm line 136, to print
|
|
|
|
> out what it did get, and show me what that yields, maybe I can figure
|
|
|
|
> this out.
|
|
|
|
|
|
|
|
error("failed to get filehandle ($fh)");
|
|
|
|
|
2008-07-08 15:58:33 +02:00
|
|
|
>> Sure. I've done the change and it seems that $fh variable is undefined:
|
|
|
|
|
|
|
|
>> Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/IkiWiki/Plugin/attachment.pm line 135.
|
|
|
|
>> failed to get filehandle ()
|
|
|
|
|
2008-07-08 15:46:29 +02:00
|
|
|
> Also, what web server and version of perl is this? --[[Joey]]
|
|
|
|
|
2008-07-08 16:00:48 +02:00
|
|
|
>> It's Apache2 2.2.8-1ubuntu0.3 and Perl 5.8.8-12 from Ubuntu Hardy. --[[Paweł|ptecza]]
|
2008-07-08 15:58:33 +02:00
|
|
|
|
2008-07-08 16:16:29 +02:00
|
|
|
>>> Hmm, is your CGI.pm perhaps creating the attachment temp file, but
|
|
|
|
>>> not providing an open filehandle to it via the `upload` method?
|
|
|
|
>>> Change the debugging line to this: --[[Joey]]
|
|
|
|
|
|
|
|
error("failed to get filehandle:$fh ; file:$filename ; is ref:".ref($q->param('attachment')));
|
|
|
|
|
2008-07-08 12:29:20 +02:00
|
|
|
The same message I can see in the Apache log file. There is also
|
|
|
|
following warning:
|
|
|
|
|
|
|
|
Use of uninitialized value in length at /usr/share/perl5/IkiWiki/Plugin/attachment.pm line 36.
|
|
|
|
|
2008-07-08 15:40:46 +02:00
|
|
|
> This is unrelated, I've fixed the warning message. --[[Joey]]
|
|
|
|
|
2008-07-08 12:29:20 +02:00
|
|
|
Is it Ikiwiki bug or my attachment plugin is misconfigured? --[[Paweł|ptecza]]
|
2008-07-08 12:42:33 +02:00
|
|
|
|
2008-07-08 15:49:29 +02:00
|
|
|
> Joey, please fix the colon in page name of my report. [...]
|
2008-07-08 12:42:33 +02:00
|
|
|
|
2008-07-08 15:49:29 +02:00
|
|
|
>> Moved to [[colon:problem]] --[[Joey]]
|