From: Chris W. <ch...@cw...> - 2003-07-07 19:17:21
|
Andreas Nolte wrote: > 1) Upgrade test beta00 -> beta01 > - copied missing log4perl.conf and replaces [% website_dir %] > - oi2_manage upgrade --website_dir=/data/oi/oi2test/ > ... > [oi2_manage]: Caught exception during task execution. > Can't locate object method "new" via package > "OpenInteract::Config::TransferSample" (perhaps you forgot to load > "OpenInteract::Config::TransferSample"?) at > /usr/lib/perl5/site_perl/5.8.0/OpenInteract2/Manage/Website/Upgrade.pm > line 47, <CONF> line 135. Whoops! Haven't tested this yet... it looks like it only bailed on the last step, copying the sitewide templates over. It's fixed in CVS. > -> I chose to ignore this for now > -> started website with mysql/lwp > -> startup ok > -> when request comes in: > New client attached from: 127.0.0.1 > Cannot process template [base_main]: Undefined subroutine > &Template::Parser::new_style called at > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Template/Parser.pm line 179. > daemon: Reaped child with PID [1] This is a *weird* TT error. What's strange is that in my TT version (2.09) 'new_style' is defined about 10 lines under where this error was thrown. And OI doesn't have anything to do with TT parsers (plugins, providers and contexts, yes, but no parsers). What TT version are you using? > 2) Fresh install > - oi2_manage create_website runs w/o a problem > - used server.ini with lwp and a MySQL DB > - did install_sql --package=SYSTEM -> OK > - tried to start the daemon -> not OK > - here the tail of oi2.log: > 20:28:56 INFO OI2.REQUEST OpenInteract2::Request (309) Loaded theme 1 > ok, getting values > 20:28:57 ERROR OI2.ACTION OpenInteract2::Controller (146) Cannot create > controller [main] -- Failure to get factory class for [main]: Factory > type [main] is not defined in [OpenInteract2::Controller] You'll need to change your server config. Sorry about not mentioning this in the changelog (future betas will have much more detailed logs). You should have the following entries in the 'content_generator' and 'controller' sections: ======================================== # # Define the different content generators... [content_generator] default = TT [content_generator TT] class = OpenInteract2::ContentGenerator::TT2Process method = process # Sample for Text::Template #[content_generator TextTmpl] #class = OpenInteract2::ContentGenerator::TextTemplate #method = process # Sample for HTML::Template #[content_generator HTMLT] #class = OpenInteract2::ContentGenerator::HtmlTemplate #method = process # # Define the main controller... [controller tt-template] content_generator = TT class = OpenInteract2::Controller::MainTemplate [controller html-template] content_generator = HTMLT class = OpenInteract2::Controller::MainTemplate [controller text-template] content_generator = TextTmpl class = OpenInteract2::Controller::MainTemplate [controller raw] class = OpenInteract2::Controller::Raw # The action table defines ... [action_info default] controller = tt-template content_generator = TT ======================================== Thanks for the report! Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |