This question about Using an extension: Needs followup in Tasks

Undefined call &Foswiki::Func::getRequestObject


root@intra:/var/lib/foswiki/bin# su -c 'cd /var/lib/foswiki/bin && ./rest /ValidateUrlsPlugin/getExternalLinks web=Documentazione' www-data
Undefined subroutine &Foswiki::Func::getRequestObject called at /var/lib/foswiki/lib/Foswiki/Plugins/ line 57.
 at /var/lib/foswiki/lib/Foswiki/Plugins/ line 57
   Foswiki::Plugins::ValidateUrlsPlugin::getExternalLinks('Foswiki=HASH(0xcb4680)', 'ValidateUrlsPlugin', 'getExternalLinks', 'Foswiki::Response=HASH(0x631928)') called at /var/lib/foswiki/lib/Foswiki/ line 2211
   Foswiki::Func::__ANON__('Foswiki=HASH(0xcb4680)', 'ValidateUrlsPlugin', 'getExternalLinks', 'Foswiki::Response=HASH(0x631928)') called at /var/lib/foswiki/lib/Foswiki/UI/ line 187
   Foswiki::UI::Rest::rest('Foswiki=HASH(0xcb4680)') called at /var/lib/foswiki/lib/Foswiki/ line 304
   Foswiki::UI::__ANON__() called at /usr/share/perl5/ line 416
   eval {...} called at /usr/share/perl5/ line 408
   Error::subs::try('CODE(0x174d200)', 'HASH(0x17d93d8)') called at /var/lib/foswiki/lib/Foswiki/ line 391
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x631e98)', 'CODE(0x631ad8)', 'rest', 1, 'command_line', 1) called at /var/lib/foswiki/lib/Foswiki/ line 275
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x631e98)') called at /var/lib/foswiki/lib/Foswiki/Engine/ line 51
   Foswiki::Engine::CLI::run('Foswiki::Engine::CLI=HASH(0x7db858)') called at ./rest line 45.
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Undefined subroutine &Foswiki::Func::getRequestObject calledroot@intra:/var/lib/foswiki/bin#

The function getRequestObject is missing in /var/lib/foswiki/lib/Foswiki/ !


Foswiki installation on Ubuntu "lucid" and repository with apache2 and mod_perl


-- GuidoBrugnara - 17 Aug 2010

Func::getRequestObject is new in Foswiki 1.1. That function replaces Func::getCgiQuery. It appears this extension was released for 1.1, and is not backwards compatible.

-- GeorgeClark - 17 Aug 2010

My work around is:

  • my $query; eval {$query = Foswiki::Func::getRequestObject()}; if($@){$query = Foswiki::Func::getCgiQuery()};

-- GuidoBrugnara - 18 Aug 2010

QuestionForm edit

Subject Using an extension
Extension ValidateUrlsPlugin
Version Foswiki 1.0.9
Status Needs followup in Tasks
Topic revision: r3 - 18 Aug 2010, GuidoBrugnara - This page was cached on 10 Jan 2018 - 05:06.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License