This question about Using an extension: Answered

Foswiki 2.0.1 crashes on TreePlugin activation

Hi everyone,

my Foswiki installation of 2.0.1 crashes on activation of TreePlugin 1.9.1

The error message is as follows:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
utf8 "\xA9" does not map to Unicode

Here's the log entry:
| 2015-08-24T13:46:08+02:00 warning | utf8 "\xA9" does not map to Unicode at /usr/lib/perl5/5.10.0/x86_64-linu
x-thread-multi/Encode.pm line 200.
 at /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/Encode.pm line 200
        Encode::decode('utf-8', '%META:TOPICPARENT{name="Plugins"}%\x{a}---+!! Tree Plugin\x{a}<!--\x{a}  ...'
, 1) called at /data/srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Store.pm line 259
        Foswiki::Store::decode('%META:TOPICPARENT{name="Plugins"}%\x{a}---+!! Tree Plugin\x{a}<!--\x{a}  ...')
 called at /data/srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Store/Rcs/Store.pm line 116
        Foswiki::Store::Rcs::Store::readTopic('Foswiki::Store::RcsWrap=HASH(0x16b8c70)', 'Foswiki::Meta=HASH(0
x2951da0)', undef) called at /data/srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Meta.pm line
1156
        Foswiki::Meta::loadVersion('Foswiki::Meta=HASH(0x2951da0)') called at /data/srv/www/htdocs/wikitest.au
gsburg.de/Foswiki-2.0.1/lib/Foswiki/Meta.pm line 1196
        Foswiki::Meta::text('Foswiki::Meta=HASH(0x2951da0)') called at /data/srv/www/htdocs/wikitest.augsburg.
de/Foswiki-2.0.1/lib/Foswiki/Prefs/Parser.pm line 46
        Foswiki::Prefs::Parser::parse('Foswiki::Meta=HASH(0x2951da0)', 'Foswiki::Prefs::TopicRAM=HASH(0x10e029
0)') called at /data/srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Prefs/TopicRAM.pm line 38
        Foswiki::Prefs::TopicRAM::new('Foswiki::Prefs::TopicRAM', 'Foswiki::Meta=HASH(0x2951da0)') called at /
data/srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Prefs.pm line 148
        Foswiki::Prefs::_getBackend('Foswiki::Prefs=HASH(0x17774a8)', 'System', 'TreePlugin') called at /data/
srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Prefs.pm line 334
        Foswiki::Prefs::setPluginPreferences('Foswiki::Prefs=HASH(0x17774a8)', 'System', 'TreePlugin') called
at /data/srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Plugin.pm line 232
        Foswiki::Plugin::registerSettings('Foswiki::Plugin=HASH(0x1ba4148)', 'Foswiki::Plugins=HASH(0x16b8b38)
') called at /data/srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Plugins.pm line 273
        Foswiki::Plugins::settings('Foswiki::Plugins=HASH(0x16b8b38)') called at /data/srv/www/htdocs/wikitest
.augsburg.de/Foswiki-2.0.1/lib/Foswiki.pm line 2243
        Foswiki::new('Foswiki', undef, 'Foswiki::Request=HASH(0x1694040)', 'HASH(0x166bbc8)') called at /data/
srv/www/htdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/UI.pm line 363
        Foswiki::UI::__ANON__() called at /usr/lib/perl5/vendor_perl/5.10.0/Error.pm line 415
        eval {...} called at /usr/lib/perl5/vendor_perl/5.10.0/Error.pm line 407
        Error::subs::try('CODE(0x14f1e88)', 'HASH(0x16b82f8)') called at /data/srv/www/htdocs/wikitest.augsbur
g.de/Foswiki-2.0.1/lib/Foswiki/UI.pm line 500
        Foswiki::UI::_execute('Foswiki::Request=HASH(0x1694040)', 'CODE(0x1572100)') called at /data/srv/www/h
tdocs/wikitest.augsburg.de/Foswiki-2.0.1/lib/Foswiki/UI.pm line 326
        Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x1694040)') called at /data/srv/www/htdocs/wikitest
.augsburg.de/Foswiki-2.0.1/lib/Foswiki/Engine/CGI.pm line 99
        Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0xf62408)') called at /data/srv/www/htdocs/wikite
st.augsburg.de/Foswiki/bin/configure line 29.

Version of Encode is 2.76

Any clue about what's going on?

-- AndreasHafner - 24 Aug 2015

This needs a task. With the change of Foswik internals to Unicode, any extensions that interface with the outside world will need modifications for Foswiki 2.0. With 300+ extensions we had to handle these on an as-reported basis.

See Item13483. I'll add this to the list.

-- GeorgeClark - 24 Aug 2015

Simple fix. The TreePlugin topic contains a high character which is causing the error. Otherwise it seems to work fine. It's the copyright symbol. You can get around the issue by manually editing data/System/TreePlugin.txt and removing the copyright symbol, or change it to the (c) text, or html entity &copy;

 | Authors: | TWiki:Main.SlavaKozlov (alpha release), [[Foswiki:Main.StephaneLenclud][Stephane Lenclud]] (2006-2008)  |
-| Copyright <A9>: | Copyright (C) 2002 Slava Kozlov. All Rights Reserved. |
+| Copyright (C): | Copyright (C) 2002 Slava Kozlov. All Rights Reserved. |
 | License: | [[http://www.gnu.org/copyleft/gpl.html][GPL]] |

-- GeorgeClark - 24 Aug 2015

Works! Thanks a lot... wink

-- AndreasHafner - 25 Aug 2015

 

QuestionForm edit

Subject Using an extension
Extension TreePlugin
Version
Status Answered
Related Topics
Topic revision: r4 - 28 Oct 2015, LynnwoodBrown
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