Item6057: Comment forrm that updates TWikiForm data fails with version control system error

Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: CommentPlugin
Reported By: TWiki:Main.VickiBrown
Waiting For:
Last Change By: CrawfordCurrie
I have a form attached to my page.

I have a CommentPlugin template that puts up a simple menu to let the user change a data field in the attached TWiki form without the need to cclick Edit.

When the Comment template is defined in UserCommentsTemplate, it works as expected. However, when it is defined in another topic and I use the templatetopic= parameter to access it, it fails.

%COMMENT{type="statusupdate" target="%INCLUDINGTOPIC%" templatetopic="VickiCommentTemplate"}%

The failure mode is:
  • CommentPlugin sees the template and presents the menu onm the screen
  • menu item can be selected * On submit, there is an error:
During save of Sandbox.VickiBrownSandbox an error was found by the version control system. Please notify your TWiki administrator.

%RED%No such template def TMPL:DEF{OUTPUT:statusupdate}%ENDCOLOR% at /var/www/twiki-local/lib/TWiki/Plugins/CommentPlugin/ line 261.
 at /var/www/twiki-local/lib/TWiki/Plugins/CommentPlugin/ line 261

-- TWiki:Main/VickiBrown - 10 Oct 2008

Your definition of OUTPUT:statusupdate contains one call, to OUTPUT:threadmode. Because you have specified that you want to get templates from your template topic, the threadmode templates are not loaded. So to the code, it looks like OUTPUT:statusupdate is undefined.

When I change your output template to X it works fine.

No action required.

-- CrawfordCurrie - 26 Jun 2010

ItemTemplate edit

Summary Comment forrm that updates TWikiForm data fails with version control system error
ReportedBy TWiki:Main.VickiBrown
SVN Range TWiki-5.0.0, Sun, 05 Oct 2008, build 17588
AppliesTo Extension
Component CommentPlugin
Priority Normal
CurrentState No Action Required
TargetRelease n/a
Topic revision: r2 - 26 Jun 2010, CrawfordCurrie
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