• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7751: Bootstrapping TWiki with the PSGI engine fails with "Template oopsattention not found"

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine PSGIEngineContrib Low Closed TWiki:Main.HaraldJoerg    

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


The PSGI engine should be able to bootstrap itself even when there's no initial LocalSite.cfg. But when I keep all default settings as provided and go to the "TWiki front page" as soon as this option is offered, then TWiki fails with "Template 'oopsattention' not found".

To reproduce in SVN checkout,

  1. Delete (or better: play it safe and rename smile ) lib/LocalSite.cfg
  2. Start the PSGI engine with plackup -Ilib psgi/twiki.psgi (of course, you need to have plackup available and TWiki:Plugins.PSGIEngineContrib pseudo-installed)
  3. Point your browser to http://localsite:5000
  4. Enter configure passwords and hit "Next"
  5. On the next screen, keep all settings and hit "Next"
  6. On the next screen, follow the link "Go to the TWiki front page"
  7. Ouch!
A workaround is to "Return to configuration" once more, and again hit "Next" without changing anything. After hitting "Next" the front page just works.

Root cause: In the initial configuration TWiki.spec the {TemplatePath} variable references $TWiki::cfg{TemplateDir} which doesn't get evaluated in the first round of configuration, when TWiki just tries to get the directory paths right. On the second round the directory paths are set, and {TemplatePath} is evaluated.

Action item: The engine should figure out when it is safe to evaluate {TemplatePath} and just do it before saving LocalSite.cfg.

BTW: The Windows personal edition is based on PSGI but doesn't have this problem since it ships with an initial LocalSite.cfg.

-- TWiki:Main/HaraldJoerg - 2016-08-11

Summary Bootstrapping TWiki with the PSGI engine fails with "Template oopsattention not found"
ReportedBy TWiki:Main.HaraldJoerg
Codebase ~twiki4, 6.0.2
SVN Range TWiki-6.0.2-trunk, Fri, 29 Jul 2016, build 30222
AppliesTo Engine
Component PSGIEngineContrib
Priority Low
CurrentState Closed
WaitingFor TWiki:Main.HaraldJoerg
Checkins TWikirev:30387


Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2017-09-06 - HaraldJoerg
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback