• 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.

There is example code in the cfg files to redirect STDERR into a file, e.g. data/error.log, which is a good thing to do by default anyway as otherwise TWiki errors fill up apache's error.log.

The problem is that STDERR is opened in a BEGIN block. Perl accelerators like speedy-cgi close STDOUT and STDERR after the response was sent. So they stay closed as the BEGIN block isn't executed anymore. Run speedy-cgi and you get no more errors wink

The solution is to move the STDERR redirect out of the BEGIN block into a reasonable place. But where?

I would recommend TWiki::UI::run


4.1.0 released


Summary perl accelerators closing STDERR will inhibit any further error log
ReportedBy TWiki:Main.MichaelDaum
Codebase 4.0.4, ~twiki4
SVN Range Wed, 17 May 2006 build 10226
AppliesTo Engine

Priority Normal
CurrentState Closed

Checkins 11315 11316 11317 11318
TargetRelease minor
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r12 - 2007-01-16 - KennethLavrsen
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