NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

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 Foswikirev:1899 Foswikirev:1900 Foswikirev:1936
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 LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads