On Thu, Apr 10, 2008 at 05:02:26PM +0100, Richard Jones wrote: > I've just tried to run my app. without the -Debug flag and now I just > get the '(en) Please come back later' (+ several other languages) error > page. I've traced it to the use of $c->stats in the end() method in the > Root controller, which is an ActionClass('RenderView') method: > > [error] Caught exception in MyApp::Controller::Root->end "Can't call > method "accept" on an undefined value at ... etc > > $c->stats->accept() is used in generating script timing reports (Cory > Watson: Adding Action Timings To Your Output), and works fine if -Debug > is enabled. > > Nothing else seems adversely affected by removing -Debug. > Catalyst::Stats is up to date, and the docs suggest it should > automatically be accessible via $c->stats. Any ideas anyone?
Debug mode is what turns on the internal statistics and action timing code, so the stats object isn't initialised without it. I'm not sure if this is a bug or a feature. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/ _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/