You are here: Foswiki>Tasks Web>Item1199 (19 Mar 2009, AndrewJones)Edit Attach

Item1199: 500 Error during BatchUploadPlugin using Compatibility Plugin

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: BatchUploadPlugin
Branches:
Reported By: ArminSchenkel
Waiting For:
Last Change By: AndrewJones

Item1199

Reproducing the error

Using Foswiki, attach a zip file with 5 images in it (or more or less). -> Then click on "Batch Upload", add a comment and press "Attach".

-> A failure message comes from the apache server:

500 Internal Server Error:

Premature end of script headers: upload

Error in the error_log Apache

[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31] Use of uninitialized value in hash element at
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31] \t/srv/www/foswiki_dev/foswiki/lib/Foswiki/Request.pm line 647 (#1)
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     (W uninitialized) An undefined value was used as if it were already
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     To suppress this warning assign a defined value to your variables.
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     To help you figure out what was undefined, perl tells you what operation
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     you used the undefined value in.  Note, however, that perl optimizes your
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     program and the operation displayed in the warning may not necessarily
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     appear literally in your program.  For example, "that $foo" is
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     usually optimized into "that " . $foo, and the warning will refer to
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     the concatenation (.) operator, even though there is no . in your
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]     program.
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31]
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31] [Wed Mar  4 11:18:13 2009] upload: Use of uninitialized value in hash element at
 /srv/www/foswiki_dev/foswiki/lib/Foswiki/Request.pm line 647.
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31] Use of uninitialized value in hash element at
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31] \t/srv/www/foswiki_dev/foswiki/lib/Foswiki/Request.pm line 618 (#1)
[Wed Mar 04 11:18:13 2009] [error] [client 172.16.66.31] [Wed Mar  4 11:18:13 2009] upload: Use of uninitialized value in hash element at
 /srv/www/foswiki_dev/foswiki/lib/Foswiki/Request.pm line 618.

Output in data/debug.txt

| 04 Mar 2009 - 11:17 | - BatchUploadPlugin::initPlugin( Sandbox.WebPreferences ) is OK
| 04 Mar 2009 - 11:17 | - BatchUploadPlugin::initPlugin( Sandbox.WebPreferences ) is OK
| 04 Mar 2009 - 11:17 | - BatchUploadPlugin::initPlugin( Sandbox.WebPreferences ) is OK
| 04 Mar 2009 - 11:18 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:18 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:18 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:18 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:18 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:18 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:18 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:19 | - BatchUploadPlugin::initPlugin( Sandbox.BatchUploadPlugin ) is OK
| 04 Mar 2009 - 11:19 | - BatchUploadPlugin::beforeAttachmentSaveHandler( Sandbox.BatchUploadPlugin - attachment: test_ohne_ordner.zip)
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - test_ohne_ordner.zip has stack depth 0
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Created temp dir /srv/www/foswiki_dev/foswiki/working/work_areas/BatchUploadPlugin/852534236
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Trying to attach: fileName=rer.jpg, fileSize=41692, fileDate=1236161970, fileComment=Test mit
 Opera nummer 2 with hide, tmpFilename=/srv/www/foswiki_dev/foswiki/working/work_areas/BatchUploadPlugin/852534236/rer.jpg
| 04 Mar 2009 - 11:19 | - BatchUploadPlugin::beforeAttachmentSaveHandler( Sandbox.BatchUploadPlugin - attachment: rer.jpg)
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Attaching rer.jpg went OK
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Trying to attach: fileName=rew.jpg, fileSize=67244, fileDate=1236161970, fileComment=Test mit
 Opera nummer 2 with hide, tmpFilename=/srv/www/foswiki_dev/foswiki/working/work_areas/BatchUploadPlugin/852534236/rew.jpg
| 04 Mar 2009 - 11:19 | - BatchUploadPlugin::beforeAttachmentSaveHandler( Sandbox.BatchUploadPlugin - attachment: rew.jpg)
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Attaching rew.jpg went OK
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Trying to attach: fileName=rfl.jpg, fileSize=63501, fileDate=1236161970, fileComment=Test mit
 Opera nummer 2 with hide, tmpFilename=/srv/www/foswiki_dev/foswiki/working/work_areas/BatchUploadPlugin/852534236/rfl.jpg
| 04 Mar 2009 - 11:19 | - BatchUploadPlugin::beforeAttachmentSaveHandler( Sandbox.BatchUploadPlugin - attachment: rfl.jpg)
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Attaching rfl.jpg went OK
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Trying to attach: fileName=rga.jpg, fileSize=74478, fileDate=1236161970, fileComment=Test mit
 Opera nummer 2 with hide, tmpFilename=/srv/www/foswiki_dev/foswiki/working/work_areas/BatchUploadPlugin/852534236/rga.jpg
| 04 Mar 2009 - 11:19 | - BatchUploadPlugin::beforeAttachmentSaveHandler( Sandbox.BatchUploadPlugin - attachment: rga.jpg)
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Attaching rga.jpg went OK
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Trying to attach: fileName=rib.jpg, fileSize=46238, fileDate=1236161970, fileComment=Test mit
 Opera nummer 2 with hide, tmpFilename=/srv/www/foswiki_dev/foswiki/working/work_areas/BatchUploadPlugin/852534236/rib.jpg
| 04 Mar 2009 - 11:19 | - BatchUploadPlugin::beforeAttachmentSaveHandler( Sandbox.BatchUploadPlugin - attachment: rib.jpg)
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Attaching rib.jpg went OK
| 04 Mar 2009 - 11:19 | BatchUploadPlugin - Result stack: 0


Hi Armin,

I will soon be porting this plugin to Foswiki so will look out for this error. See Item1250 to keep track of the port.

-- AndrewJones - 11 Mar 2009

This plugin has now been ported to Foswiki. Try downloading the version at Extensions.BatchUploadPlugin and see if you have any issues. If you do, please open a new item.

-- AndrewJones - 19 Mar 2009

ItemTemplate edit

Summary 500 Error during BatchUploadPlugin using Compatibility Plugin
ReportedBy ArminSchenkel
Codebase 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component BatchUploadPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 19 Mar 2009, AndrewJones
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy