This question about Using an extension: Asked

"Error Saving Topic" after uploading .doc

How do I fix this issue (error output below)? I'm using the latest AbiWord (2.8) and foswiki 1.09.

AbiWord --to=html %ATTACHDIR|F% %SRC|F% %DEST|F% failed with exit code 1: at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Plugins/MsOfficeAttachmentsAsHTMLPlugin.pm line 56.
at C:/strawberry/perl/lib/CGI/Carp.pm line 354
   CGI::Carp::realdie('AbiWord --to=html %ATTACHDIR|F% %SRC|F% %DEST|F% failed with ...') called at C:/strawberry/perl/lib/CGI/Carp.pm line 435
   CGI::Carp::die('AbiWord --to=html %ATTACHDIR|F% %SRC|F% %DEST|F% failed with ...') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Plugins/MsOfficeAttachmentsAsHTMLPlugin.pm line 56
   Foswiki::Plugins::MsOfficeAttachmentsAsHTMLPlugin::afterAttachmentSaveHandler('HASH(0x1483d64)', 'AgnRelease511B', 'ANSTransEng', '') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Plugin.pm line 273
   Foswiki::Plugin::invoke('Foswiki::Plugin=HASH(0x128a264)', 'afterAttachmentSaveHandler', 'HASH(0x1483d64)', 'AgnRelease511B', 'ANSTransEng', '') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Plugins.pm line 316
   Foswiki::Plugins::dispatch('Foswiki::Plugins=HASH(0xc98224)', 'afterAttachmentSaveHandler', 'HASH(0x1483d64)', 'AgnRelease511B', 'ANSTransEng', '') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Store.pm line 1075
   Foswiki::Store::__ANON__() called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib//Error.pm line 379
   eval {...} called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib//Error.pm line 371
   Error::subs::try('CODE(0x14834c4)', 'HASH(0x1483b24)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Store.pm line 1115
   Foswiki::Store::saveAttachment('Foswiki::Store=HASH(0xc98404)', 'ANSTransEng', 'AgnRelease511B', 'test.doc', 'BaseUserMapping_333', 'HASH(0x14833f4)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI/Upload.pm line 269<br />   Foswiki::UI::Upload::__ANON__() called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib//Error.pm line 379
   eval {...} called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib//Error.pm line 371<br />   Error::subs::try('CODE(0x14832f4)', 'HASH(0x14832a4)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI/Upload.pm line 293<br />   Foswiki::UI::Upload::_upload('Foswiki=HASH(0x74aa64)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI/Upload.pm line 169
   Foswiki::UI::Upload::upload('Foswiki=HASH(0x74aa64)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI.pm line 304
   Foswiki::UI::__ANON__() called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib//Error.pm line 379
   eval {...} called at C:/Program Files/Foswiki/Foswiki/lib/CPAN/lib//Error.pm line 371
   Error::subs::try('CODE(0x979aac)', 'HASH(0x145f054)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI.pm line 391
   Foswiki::UI::_execute('Foswiki::Request=HASH(0xbf96ac)', 'CODE(0xc7dc84)', 'upload', 1) called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/UI.pm line 275
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0xbf96ac)') called at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Engine/CGI.pm line 29
   Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0xab3114)') called at C:/Program Files/Foswiki/Foswiki/bin/upload line 45


This seems to be a bug in MsOfficeAttachmentsAsHTMLPlugin (maybe because its not been tested on windows?) - I wonder if it can be recoded to use the StringifierContrib.

-- SvenDowideit - 10 Mar 2010

You can try to activate the trace to see which command is really executed and try to execute it from the shell ......

To see what is happening activate the trace in Sandbox:
  • edit /var/lib/foswiki/lib/Foswiki/Sandbox.pm and enable tracing
  • Reproduce the error (create in Sandbox a Topic which reproduces the error). Your apache log should now contain the command that it was trying to execute
  • switch tracing off again in Sandbox.pm
  • paste the abiword command line (from the apache error log) in the shell, and observe what happens (this assumes the plugin is calling abiword through that standard sandbox mechanisms)
-- CatiaLavalle - 27 Aug 2010

QuestionForm edit

Subject Using an extension
Extension MsOfficeAttachmentsAsHTMLPlugin
Version Foswiki 1.0.9
Status Asked
Topic revision: r3 - 27 Aug 2010, CatiaLavalle
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