Tags:
create new tag
, view all tags

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:

  1. Create a subweb under a particular web
  2. 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)
  3. Manually create the "plugin_location/_tags_Web" directory from a shell
  4. Retry tagging the topic. It now succeeds.
  5. Click on the tag. Notice that the topic is not listed on the tag search page.

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: TagMePlugin, TablePlugin, SpreadSheetPlugin, SmiliesPlugin, SlideShowPlugin, PreferencesPlugin, CommentPlugin, EditTablePlugin, DefaultPlugin, InterwikiPlugin
Server OS: OS X 10.4.6 (PowerPC)
Web server: Apache 1.3.33 (Darwin)
Perl version: 5.8.6
Client OS: OS X 10.4.6 (PowerPC) From localhost
Web Browser: Safari 2.0.3 (417.9.2)
Categories: Fatal error, Plugins

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

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.

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

 
Topic revision: r3 - 2006-05-03 - EdgarBrown
 
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.