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
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
CC
4.1.0 released
KJL