Question
More like a bug report (I think):
TagMePlugin fails both in applying tags and in searching for them when used in a sub web.
Test case:
- Create a subweb under a particular web
- Add a tag to a topic in that subweb
it fails with an error that essentially means: Cannot create file (plugin_location/_tags_Web/subweb.topic)
- Manually create the "plugin_location/_tags_Web" directory from a shell
- Retry tagging the topic. It now succeeds.
- Click on the tag. Notice that the topic is not listed on the tag search page.
Environment
Apache error log
Can't create file /Public/twiki/pub/TWiki/TagMePlugin/_tags_Groups/Subweb.WebHome.txt - No such file or directory
at /Public/twiki/lib/TWiki/Func.pm line 1908
TWiki::Func::saveFile('/Public/twiki/pub/TWiki/TagMePlugin/_tags_Groups/D...', '# This file is generated, do not edit\x{a}001, main_pages, EdgarB...') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 589
TWiki::Plugins::TagMePlugin::writeTagInfo('Groups/Subweb.WebHome', '001, main_pages, EdgarBrown') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 488
TWiki::Plugins::TagMePlugin::addTag('main_pages') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 106
TWiki::Plugins::TagMePlugin::handleTagMe(' tpaction="add" tag="main_pages" ') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 85
TWiki::Plugins::TagMePlugin::commonTagsHandler('<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki/Plugin.pm line 225
TWiki::Plugin::invoke('TWiki::Plugin=HASH(0x19e15c0)', 'commonTagsHandler', '<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki/Plugins.pm line 303
TWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x1812ccc)', 'commonTagsHandler', '<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki/Plugins.pm line 439
TWiki::Plugins::commonTagsHandler('TWiki::Plugins=HASH(0x1812ccc)', '<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki.pm line 2750
TWiki::_INCLUDE('TWiki=HASH(0x1801434)', 'TWiki::Attrs=HASH(0x1a92624)', 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2245
TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x1801434)', 'INCLUDE', '"TWiki.WebTopBar"', 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2164
TWiki::_processTags('TWiki=HASH(0x1801434)', '</div><!-- /patternTopic-->\x{a}<div class="twikiAfterText"></div...', 'CODE(0x194c24c)', 16, 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2090
TWiki::_expandAllTags('TWiki=HASH(0x1801434)', 'SCALAR(0x1a6e9a8)', 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2433
TWiki::handleCommonTags('TWiki=HASH(0x1801434)', '</div><!-- /patternTopic-->\x{a}<div class="twikiAfterText"></div...', 'Groups/Subweb', 'WebHome') called at /Public/twiki/lib/TWiki/UI/View.pm line 320
TWiki::UI::View::_prepare('</div><!-- /patternTopic-->\x{a}<div class="twikiAfterText"></div...', 'TWiki=HASH(0x1801434)', 'Groups/Subweb', 'WebHome', 'TWiki::Meta=HASH(0x19f0ef4)', 0) called at /Public/twiki/lib/TWiki/UI/View.pm line 309
TWiki::UI::View::view('TWiki=HASH(0x1801434)') called at /Public/twiki/lib/TWiki/UI.pm line 97
TWiki::UI::__ANON__() called at /Public/twiki/lib/CPAN/lib///Error.pm line 387
eval {...} called at /Public/twiki/lib/CPAN/lib///Error.pm line 379
Error::subs::try('CODE(0x1a15d6c)', 'HASH(0x1a1504c)') called at /Public/twiki/lib/TWiki/UI.pm line 146
TWiki::UI::run('CODE(0x180d7b0)') called at /Public/twiki/bin/viewauth line 31
********************************
Can't create file /Public/twiki/pub/TWiki/TagMePlugin/_tags_Groups/Subweb.WebHome.txt - No such file or directory
at /Public/twiki/lib/TWiki/Func.pm line 1908
TWiki::Func::saveFile('/Public/twiki/pub/TWiki/TagMePlugin/_tags_Groups/D...', '# This file is generated, do not edit\x{a}001, main_pages, EdgarB...') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 589
TWiki::Plugins::TagMePlugin::writeTagInfo('Groups/Subweb.WebHome', '001, main_pages, EdgarBrown') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 488
TWiki::Plugins::TagMePlugin::addTag('main_pages') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 106
TWiki::Plugins::TagMePlugin::handleTagMe(' tpaction="add" tag="main_pages" ') called at /Public/twiki/lib/TWiki/Plugins/TagMePlugin.pm line 85
TWiki::Plugins::TagMePlugin::commonTagsHandler('<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki/Plugin.pm line 225
TWiki::Plugin::invoke('TWiki::Plugin=HASH(0x19e15c0)', 'commonTagsHandler', '<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki/Plugins.pm line 303
TWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x1812ccc)', 'commonTagsHandler', '<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki/Plugins.pm line 439
TWiki::Plugins::commonTagsHandler('TWiki::Plugins=HASH(0x1812ccc)', '<table border="0" cellpadding="0" cellspacing="0" style="widt...', 'WebTopBar', 'TWiki', 1) called at /Public/twiki/lib/TWiki.pm line 2750
TWiki::_INCLUDE('TWiki=HASH(0x1801434)', 'TWiki::Attrs=HASH(0x1a92624)', 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2245
TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x1801434)', 'INCLUDE', '"TWiki.WebTopBar"', 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2164
TWiki::_processTags('TWiki=HASH(0x1801434)', '</div><!-- /patternTopic-->\x{a}<div class="twikiAfterText"></div...', 'CODE(0x194c24c)', 16, 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2090
TWiki::_expandAllTags('TWiki=HASH(0x1801434)', 'SCALAR(0x1a6e9a8)', 'WebHome', 'Groups/Subweb') called at /Public/twiki/lib/TWiki.pm line 2433
TWiki::handleCommonTags('TWiki=HASH(0x1801434)', '</div><!-- /patternTopic-->\x{a}<div class="twikiAfterText"></div...', 'Groups/Subweb', 'WebHome') called at /Public/twiki/lib/TWiki/UI/View.pm line 320
TWiki::UI::View::_prepare('</div><!-- /patternTopic-->\x{a}<div class="twikiAfterText"></div...', 'TWiki=HASH(0x1801434)', 'Groups/Subweb', 'WebHome', 'TWiki::Meta=HASH(0x19f0ef4)', 0) called at /Public/twiki/lib/TWiki/UI/View.pm line 309
TWiki::UI::View::view('TWiki=HASH(0x1801434)') called at /Public/twiki/lib/TWiki/UI.pm line 97
TWiki::UI::__ANON__() called at /Public/twiki/lib/CPAN/lib///Error.pm line 387
eval {...} called at /Public/twiki/lib/CPAN/lib///Error.pm line 379
Error::subs::try('CODE(0x1a15d6c)', 'HASH(0x1a1504c)') called at /Public/twiki/lib/TWiki/UI.pm line 146
TWiki::UI::run('CODE(0x180d7b0)') called
--
EdgarBrown - 01 May 2006
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.
This is a known issue. See
TagMePluginDev, my note on 06 Apr 2006.
--
PeterThoeny - 02 May 2006
Thanks, that worked nicely. I skimmed that page before posting but I completely missed those comments.
--
EdgarBrown - 03 May 2006