We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

When try Edit the sample action on ActionTrackerPlugin page, it prompt " Could not find template edit000001"

I guess edit try to use template "edit", but somehow append item id "000001" (this is first action item). The problem appears on both Firefox and IE.

The install is a clean TWikiRelease2005x12x17x7873beta plus TWiki::Contrib::Attrs and TWiki::Contrib::JSCalendarContrib

Environment

TWiki version: TWikiRelease2005x12x17x7873beta
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS?
Web server: Apache 1.3
Perl version: 5.80
Client OS: Windows
Web Browser: FireFox?
Categories: Plugins

-- RuanJianDev - 06 Jan 2006

Answer

Not quite An answer� I am getting this as well. Differences being I am using WIKIVERSION Sun, 06 Nov 2005 build 7330 on Solaris.

A related issue I have with ActionTracker/TWiki is not seeing my personal install of Time::ParseDate (2003.1126) rather than the system version (101.062101) which I don�t believe is related to this.

The full error being: Template edit000001" not foundCheck the configuration setting for {TemplateDir}

-- DrewCard - 27 Jan 2006

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.

Confirmed with Dakar release (4.0.1) on Linux/Apache.

Side note: It seems JSCalendarContrib? is already part of Dakar, but the installer script has problems with it.

Checking dependency on TWiki::Contrib::JSCalendarContrib....
*** ActionTrackerPlugin depends on package TWiki::Contrib::JSCalendarContrib >=0.96,
which is described as "Optional, used if installed. Used to display a neat calendar popup when editing actions. Available from the TWiki:Plugins/JSCalendarContrib repository."
But when I tried to find it I got this error:

 $Rev: 8035 $ is currently installed:  

-- PetricFrank - 08 Feb 2006

I debugged a little on TWiki code (release 4.0.1) and found a solution (maybe a hack).

in lib/TWiki/UI/Edit.pm around line 196 you find the following code line:

    if( !$tmpl && $template ne 'edit' ) {

Replace it with

    if( !$tmpl ) {

This was only half of the solution (sorry) for me.

Now i got past the error message, but i got the HTML code instead of the rendered page.

I had to do second change: I modified templates/edit.action.tmpl and replaced %TEXT% by %UNENCODED_TEXT%.

I think this may not be the correct fix, but for me it works.

A little bit about the background (as far as i understand it):

The edit link passes (among others) following paramters to TWiki::UI::Edit::edit:

  • skin = 'action'
  • action = <action id> (here: 000001)

In the patched section of the code it tries to load the edit template. Its short name is 'edit'.

It looks in sequence for

  1. templates/edit<action>.tmpl (here: templates/edit000001.tmpl, which does not exist)
  2. templates/edit.<skin>.tmpl (here: templates/edit.action.tmpl, part of ActionTracker? distribution)

The rule above only applies when %EDIT_TEMPLATE% evaluates not to 'edit'. (%EDIT_TEMPLATE% evaluates to 'edit' by default !).

Otherwise the system does not look for the second file.

As result the error message seen above will appear.

-- PetricFrank - 10 Feb 2006

I'm tracking this in Bugs:Item1841

-- CrawfordCurrie - 12 Mar 2006

I had this problem and it turned out that the permissions on actionform.tmpl, actionnotify.tmpl, and edit.action.tmpl were set incorrectly by the install process to 440. Not sure why.

-- ClifCox - 26 Nov 2006

 
Topic revision: r10 - 26 Nov 2006 - 06:43:24 - ClifCox
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback