Tags:
create new tag
, view all tags

Question

Hi,

I have just installed and enabled the MsOfficeAttachmentsAsHTMLPlugin. As soon as I have enabled it (with the web configure tool) I get the following error on the twiki server

Software error:

Can't use string ("MSOFFICEATTACHMENTSASHTMLPLUGIN_") as a HASH ref while "strict refs" in use at /opt/twiki/lib/TWiki/Prefs.pm line 246.

For help, please send mail to the webmaster, giving this error message and the time and date of the error.

I can not connect with a browser to any twiki page anymore.

Please help me to fix it.

It would not be a problem for me to disable the plugin again, but how?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, MsOfficeAttachmentsAsHTMLPlugin, TreePlugin,FlexWebListPlugin
Server OS: Red Hat Enterprise Linux ES release 3, 2.4.21-47.ELsmp
Web server: Apache/2.0.46
Perl version: perl-5.8.0-94.EL3
Client OS: Windows XP
Web Browser: Firefox 2.0.0.6
Categories: Plugins, Add-Ons

-- CatiaLavalle - 06 Sep 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

-- CatiaLavalle - 06 Sep 2007

I have just managed to disable the Ms Office Attachments As HTML Plugin by editing the $TWIKIHOME/lib/LocalSite.cfg file and deleting the line:

$TWiki::cfg{Plugins}{MsOfficeAttachmentsAsHTMLPlugin}{Enabled} = 1;

Now I got my server running again, and the plugin disabled. But say I would like to use this plugin: how to fix the problem?

-- CatiaLavalle - 06 Sep 2007

This is likely caused by an unofficial call done by the plugin Perl code. Frequent issue: TWiki::Prefs::getPreferencesValue() instead of TWiki::Func::getPreferencesValue(). Any calls other than TWiki::Func::...() are problematic.

-- PeterThoeny - 06 Sep 2007

-- RosArcher - 07 Dec 2007

The call to TWiki::Prefs::getPreferencesValue() is in MsOfficeAttachmentsAsHTMLPlugin.pm. Simply change it to TWiki::Func::getPreferencesValue() and it will load.

-- RosArcher - 07 Dec 2007

 
Change status to:
Topic revision: r3 - 2007-12-07 - RosArcher
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.