]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/attachment:_failed_to_get_filehandle.mdwn
web commit by http://ptecza.myopenid.com/: * Next debbuging
[ikiwiki.git] / doc / bugs / attachment:_failed_to_get_filehandle.mdwn
index ea5ee4a3bc1f5ef8545b2d5ce859fdab084c0422..d49092e610388848cc13708a636e80c7c6255796 100644 (file)
@@ -17,7 +17,19 @@ the error message like below:
 
 > Also, what web server and version of perl is this? --[[Joey]]
 
->> It's Perl 5.8.8-12 from Ubuntu Hardy. --[[Paweł|ptecza]]
+>> It's Apache2 2.2.8-1ubuntu0.3 and Perl 5.8.8-12 from Ubuntu Hardy. --[[Paweł|ptecza]]
+
+>>> 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')));
+
+>>>> Now my Ikiwiki returns:
+
+>>>>     failed to get filehandle: ; file:sandbox/test.txt ; is ref:
+
+>>>> Is it helpful for you? --[[Paweł|ptecza]]
 
 The same message I can see in the Apache log file. There is also
 following warning: