Why can't I get a stack trace from Foswiki after a failure when using FastCGI?

Essentially, it just doesn't work. Carp, and its CGI wrapper CGI::Carp, even with fatalsToBrowser - which is imported when you use FOSWIKI_ASSERTS=1 in your ENV, Eg. via bin/LocalLib.cfg - is unable to emit the stack trace to the web browser or server logs because of the way that FCGI works (see the stackoverflow link for details).

You will need to configure an alternate non-FastCGI path to your Foswiki installation; for example, foswiki.org (sometimes) has scripts & topics available via both FastCGI Eg. foswiki.org/Sandbox/Foo and also foswiki.org/cgi/view/Sandbox/Foo (non-fcgi).

Support.FAQForm edit

TopicClassification FrequentlyAskedQuestion
Subject Accelerators or modperl or FastCGI, Debugging, Development
Topic Summary Explains why CGI::Carp's fatalsToBrowser fails to emit a stack-trace on FastCGI Foswikis
Extension FastCGIEngineContrib
Interested Parties
Related Topics
Topic revision: r2 - 03 May 2012, GeorgeClark - This page was cached on 06 Apr 2021 - 15:38.

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