Foswiki on GitHub is open for business! Next release meeting: Monday Nov. 17, 1300Z

Item714: Add a Legacy engine, so Contribs that add scripts to bin dir can work

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine    
I was trying to make SearchEngineKinoSearchAddOn to work with trunk, but the kinosearch script always lead to "Internal Server Error", cause it prints nothing.

The problem is that Foswiki::Engine::CGI or Foswiki::Engine::CLI, loaded automatically since kinosearch doesn't set $Foswiki::cfg{Engine}, are not finalized, so there is no output.

I'm working on a Foswki::Engine::Legacy to be loaded automatically and make legacy scripts work.

-- GilmarSantosJr - 09 Jan 2009

I'm reopening this cause Legacy engine made configure script display an error at bottom of the page:

Software error:

Can't call method "cookies" on an undefined value at /home/junior/projeto_final/svn/src/foswiki/core/lib/Foswiki/Engine.pm line 343. END failed--call queue aborted.

The problem is that it loads Foswiki.pm, what leads to initialization of Foswiki::Engine::Legacy, but doesn't call Foswiki->new, so there is no Foswiki::Response object.

-- GilmarSantosJr - 11 Jan 2009

ItemTemplate edit

Summary Add a Legacy engine, so Contribs that add scripts to bin dir can work
ReportedBy GilmarSantosJr
Codebase 1.0.0, 1.0.0 beta3, 1.0.0 beta2, 1.0.0 beta1, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:690f750ea424 distro:350642523d75 distro:dbbe30e48bff
TargetRelease patch
ReleasedIn
Topic revision: r7 - 23 Feb 2009, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License