This question about Using an extension: Needs followup in Tasks
Undefined call &Foswiki::Func::getRequestObject
Error:
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/ValidateUrlsPlugin.pm line 57.
at /var/lib/foswiki/lib/Foswiki/Plugins/ValidateUrlsPlugin.pm line 57
Foswiki::Plugins::ValidateUrlsPlugin::getExternalLinks('Foswiki=HASH(0xcb4680)', 'ValidateUrlsPlugin', 'getExternalLinks', 'Foswiki::Response=HASH(0x631928)') called at /var/lib/foswiki/lib/Foswiki/Func.pm line 2211
Foswiki::Func::__ANON__('Foswiki=HASH(0xcb4680)', 'ValidateUrlsPlugin', 'getExternalLinks', 'Foswiki::Response=HASH(0x631928)') called at /var/lib/foswiki/lib/Foswiki/UI/Rest.pm line 187
Foswiki::UI::Rest::rest('Foswiki=HASH(0xcb4680)') called at /var/lib/foswiki/lib/Foswiki/UI.pm line 304
Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try('CODE(0x174d200)', 'HASH(0x17d93d8)') called at /var/lib/foswiki/lib/Foswiki/UI.pm line 391
Foswiki::UI::_execute('Foswiki::Request=HASH(0x631e98)', 'CODE(0x631ad8)', 'rest', 1, 'command_line', 1) called at /var/lib/foswiki/lib/Foswiki/UI.pm line 275
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x631e98)') called at /var/lib/foswiki/lib/Foswiki/Engine/CLI.pm 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/Func.pm !
Installation
Foswiki installation on Ubuntu "lucid" and repository
http://fosiki.com/Foswiki_debian/ with apache2 and mod_perl
Package:
--
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