Item2151: EDIT_TEMPLATE with missing edit template makes it impossible to edit the topic

pencil
Priority: Urgent
Current State: Closed
Released In: 1.0.8
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: KennethLavrsen
If EDIT_TEMPLATE is set and that template is not available in the web, it becomes impossible to edit the topic.

  1. I have a topic with a form
  2. I move it to another web that does not have a form
  3. I want to edit the page to remove the form data
  4. I get the error screen:

Attention

Could not find template TopFormEditform

Check your configuration settings for {TemplateDir} and {TemplatePath}. If that's not the problem, it may be because you have a setting of EDIT_TEMPLATE that is pointing to a template that doesn't exist.

EDIT_TEMPLATE is currently set to TopFormEditform

(don't forget to check your Topic Settings) 

Now I am locked. No possibility to make any changes to the topic, and no hint what to do.

-- ArthurClemens - 23 Sep 2009

Last resort hack: http://....edit/Web/Topic?template=edit : the url param overrides the invalid topic setting.

-- MichaelDaum - 23 Sep 2009

A normal end user will never be able to fix the problem. He will not know about the hack.

I have fixed the code so instead we fall back to the normal edit template and add an entry in the warn log.

-- KennethLavrsen - 17 Oct 2009

ItemTemplate edit

Summary EDIT_TEMPLATE with missing edit template makes it impossible to edit the topic
ReportedBy ArthurClemens
Codebase 1.0.7
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:84786a50e463 distro:8c84ddbbf69a distro:27011ed19d8a
TargetRelease patch
ReleasedIn 1.0.8
Topic revision: r9 - 29 Nov 2009, KennethLavrsen
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