Item8342: TagMePlugin: Adding a new tag fails when using blog style
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
I'm using the latest version of
TagMePlugin (
$Rev: 4104 (2009-06-11) $
) on Foswiki 1.0.7 and enabled the blog style (
Set SKIN = tagme_styleblogbutton
). When I try to add the new tag
Test
by clicking on the
Tag
button, filling in the form
Create and Tag
, the browser tries to open the following URL and I get the error message shown below:
URL:
http://wiki/bin/viewauth/Sandbox/TestTopic10?tag=Test&tpaction=newtagsandadd
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
Can't use string ("tag="Test"") as a HASH ref while "strict refs" in use
My
warn200911.txt
file contains the following error message:
| 2009-11-19T15:55:55Z warning | Can't use string ("tag="Test"") as a HASH ref while "strict refs" in use at /home/httpd/foswiki/lib/Foswiki/Plugins/TagMePlugin.pm line 1056.
at /home/httpd/foswiki/lib/Foswiki/Plugins/TagMePlugin.pm line 1056
Foswiki::Plugins::TagMePlugin::_newTag('tag="Test"') called at /home/httpd/foswiki/lib/Foswiki/Plugins/TagMePlugin.pm line 1187
Foswiki::Plugins::TagMePlugin::_newTagsAndAdd('Foswiki::Attrs=HASH(0xaadf050)') called at /home/httpd/foswiki/lib/Foswiki/Plugins/TagMePlugin.pm line 150
Foswiki::Plugins::TagMePlugin::_TAGME('Foswiki=HASH(0x9951fb8)', 'Foswiki::Attrs=HASH(0xaadf050)', 'TestTopic10', 'Sandbox', 'Foswiki::Meta=HASH(0xa0a9f00)') called at /home/httpd/foswiki/lib/Foswiki/Func.pm line 2127
Foswiki::Func::__ANON__('Foswiki=HASH(0x9951fb8)', 'Foswiki::Attrs=HASH(0xaadf050)', 'TestTopic10', 'Sandbox', 'Foswiki::Meta=HASH(0xa0a9f00)') called at /home/httpd/foswiki/lib/Foswiki.pm line 2842
Foswiki::_expandTagOnTopicRendering('Foswiki=HASH(0x9951fb8)', 'TAGME', ' tpaction="newtagsandadd" tag="Test" web="Sandbox" style="bl...', 'TestTopic10', 'Sandbox', 'Foswiki::Meta=HASH(0xa0a9f00)') called at /home/httpd/foswiki/lib/Foswiki.pm line 2748
Foswiki::_processTags('Foswiki=HASH(0x9951fb8)', '\x{a}\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'CODE(0x9b7bc10)', 16, 'TestTopic10', 'Sandbox', 'Foswiki::Meta=HASH(0xa0a9f00)') called at /home/httpd/foswiki/lib/Foswiki.pm line 2665
Foswiki::expandAllTags('Foswiki=HASH(0x9951fb8)', 'SCALAR(0x9b85d18)', 'TestTopic10', 'Sandbox', 'Foswiki::Meta=HASH(0xa0a9f00)') called at /home/httpd/foswiki/lib/Foswiki.pm line 2993
Foswiki::handleCommonTags('Foswiki=HASH(0x9951fb8)', '\x{a}\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'Sandbox', 'TestTopic10', 'Foswiki::Meta=HASH(0xa0a9f00)') called at /home/httpd/foswiki/lib/Foswiki/UI/View.pm line 388
Foswiki::UI::View::_prepare('\x{a}\x{a}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...', 'Foswiki=HASH(0x9951fb8)', 'Sandbox', 'TestTopic10', 'Foswiki::Meta=HASH(0xa0a9f00)', 0) called at /home/httpd/foswiki/lib/Foswiki/UI/View.pm line 348
Foswiki::UI::View::view('Foswiki=HASH(0x9951fb8)') called at /home/httpd/foswiki/lib/Foswiki/UI.pm line 304
Foswiki::UI::__ANON__() called at /home/httpd/foswiki/lib/CPAN/lib/Error.pm line 379
eval {...} called at /home/httpd/foswiki/lib/CPAN/lib/Error.pm line 371
Error::subs::try('CODE(0xa0a9680)', 'HASH(0xa0a9c80)') called at /home/httpd/foswiki/lib/Foswiki/UI.pm line 391
Foswiki::UI::_execute('Foswiki::Request=HASH(0x9cfe5b8)', 'CODE(0x9cfe188)', 'view', 1) called at /home/httpd/foswiki/lib/Foswiki/UI.pm line 275
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x9cfe5b8)') called at /home/httpd/foswiki/lib/Foswiki/Engine/Apache.pm line 87
Foswiki::Engine::Apache::run('Apache2::RequestRec=SCALAR(0x9951ee8)') called at -e line 0
eval {...} called
|
Adding tags using the topic
TagMeCreateNewTag works without any error messages.
--
MartinKaufmann - 19 Nov 2009
Cannot reproduce, on Foswiki 1.1.5.
--
ArthurClemens - 22 May 2012