On Wed, Apr 06, 2005 at 01:12:59PM -0500, Gunnar Wolf wrote: > Apache::Request::config: cannot disable uploads (parser not found) at > /usr/lib/perl5/Apache2/Apache/Request.pm line 64. > [Wed Apr 06 13:01:02 2005] [error] [client 132.248.72.73] File does not > exist: /var/www/favicon.ico
I've looked a bit into this. First, latest SVN snapshot doesn't work (ie. gives the same warning, and then immediately segfaults :-) ), so there is no immediately known fix. Second, I don't really understand what's happening here; it looks like the "parser" in question is something that's supposed to be derived from the "content type" of the "environment"; it _might_ be that the idea here is to have separate parsers depending on whatever the user sends in. (In that case, it's logical that it can't find a parser on a GET, since it doesn't contain a payload.) > This seems to be triggered by the sole presence of the DISABLE_UPLOADS > argument to the constructor of Apache2::Request - The message does no > longer appear if I comment the object creation and use only > $request=Apache::Request->new($r); Yes, I can reproduce it with DISABLE_UPLOADS set. > - The error happens in the _process_upload function, precisely at the > first mention of $req->upload, which should return an empty hashref > if no upload was received: > return $upload unless $req->upload; To be honest, I'm not sure if this is related or not. The documentation seems to demand that you "use Apache::Upload" at the top, though, which seems to fix the error for me (but the warning's still there). /* Steinar */ -- Homepage: http://www.sesse.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]