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
--
CatiaLavalle - 06 Sep 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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