Item13176: SEARCH causing undefined Summary errors in log
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: minor
Seems to be triggered by
http://foswiki.org/Sandbox/MegaFAQ (now disabled)
On trunk.foswiki.org, the search still fails with the uninitialized $name, but is trapped and returns immediately.
%SEARCH{
type="query" web="Support"
excludetopic="FaqTemplate"
"TopicClassification='FrequentlyAskedQuestion'"
format="---+
$formfield(TopicTitle)$percntBR$percnt$text"
nosearch="on"
nonoise="on"
}%
[Sun Dec 21 18:36:24.277858 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.277887 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.277892 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.277895 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.277899 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /us
[Sun Dec 21 18:36:24.293811 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: r/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.293821 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.293824 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.293828 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm line 576.
[Sun Dec 21 18:36:24.293832 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: stderr: Use of uninitialized value $name in string eq at /usr/home/foswiki.org/public_html/lib/Foswiki/Form.pm l
[Sun Dec 21 18:43:16.433516 2014] [fcgid:warn] [pid 54135] [client x.x.x.x:35341] mod_fcgid: error reading data, FastCGI server closed connection
[Sun Dec 21 18:43:16.447873 2014] [core:error] [pid 54135] [client x.x.x.x:35341] End of script output before headers: foswiki.fcgi
On trunk, the crash is:
Could not perform search. Error was: Use of uninitialized value $name in string eq at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Form.pm line 673.
at /usr/local/lib/perl5/5.16/CGI/Carp.pm line 379.
CGI::Carp::realdie("Use of uninitialized value \$name in string eq at /usr/home/tr"...) called at /usr/local/lib/perl5/5.16/CGI/Carp.pm line 468
CGI::Carp::die("Use of uninitialized value \$name in string eq at /usr/home/tr"...) called at /usr/home/trunk.foswiki.org/core/lib/AssertOn.pm line 15
Assert::__ANON__("Use of uninitialized value \$name in string eq at /usr/home/tr"...) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Form.pm line 673
Foswiki::Form::getField(Foswiki::Form=HASH(0x80601ff90), undef) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Meta.pm line 1878
Foswiki::Meta::__ANON__() called at /usr/local/lib/perl5/site_perl/5.16/Error.pm line 421
eval {...} called at /usr/local/lib/perl5/site_perl/5.16/Error.pm line 413
Error::subs::try(CODE(0x80577d2b8), HASH(0x80601fca8)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Meta.pm line 1888
Foswiki::Meta::renderFormFieldForDisplay(Foswiki::Meta=HASH(0x805f84618), undef, "\$value", HASH(0x8060277b0)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search.pm line 1370
Foswiki::Search::displayFormField(Foswiki::Meta=HASH(0x805f84618), undef, "") called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search.pm line 1285
Foswiki::Search::formatResult(Foswiki::Search=HASH(0x805649810), "---+ \$formfield(TopicTitle)\$percntBR\$percnt\$"..., Foswiki::Meta=HASH(0x805f84618), "%JQREQUIRE{\"chili\"}%\x{a}\x{a}---+ Problem\x{a}\x{a}Consider a TML table"..., HASH(0x805efcd08), HASH(0x805f00138), HASH(0x805ee0e28)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search.pm line 1054
Foswiki::Search::formatResults(Foswiki::Search=HASH(0x805649810), Foswiki::Query::Node=HASH(0x805d5e0c0), Foswiki::Iterator::FilterIterator=HASH(0x805ee0df8), HASH(0x805cba870)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search.pm line 435
Foswiki::Search::searchWeb(Foswiki::Search=HASH(0x805649810), "search", "TopicClassification='FrequentlyAskedQuestion'", "basetopic", "Item13176", "_RAW", "\x{a}type=\"query\" web=\"Support\"\x{a}excludetopic=\"FaqTemplate\"\x{a}\"Topic"..., "web", "Support", ...) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Macros/SEARCH.pm line 39
Foswiki::__ANON__() called at /usr/local/lib/perl5/site_perl/5.16/Error.pm line 421
eval {...} called at /usr/local/lib/perl5/site_perl/5.16/Error.pm line 413
Error::subs::try(CODE(0x805ead378), HASH(0x805d67390)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Macros/SEARCH.pm line 60
Foswiki::SEARCH(Foswiki=HASH(0x802d78db0), Foswiki::Attrs=HASH(0x805ebaed0), Foswiki::Meta=HASH(0x8048ca9c0)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 3334
Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x802d78db0), "SEARCH", "\x{a}type=\"query\" web=\"Support\"\x{a}excludetopic=\"FaqTemplate\"\x{a}\"Topic"..., Foswiki::Meta=HASH(0x8048ca9c0)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 3196
Foswiki::_processMacros(Foswiki=HASH(0x802d78db0), "Seems to be triggered by http://foswiki.org/Sandbox/MegaFAQ "..., CODE(0x802d3dd98), Foswiki::Meta=HASH(0x8048ca9c0), 16) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 2993
Foswiki::innerExpandMacros(Foswiki=HASH(0x802d78db0), SCALAR(0x802d47eb8), Foswiki::Meta=HASH(0x8048ca9c0)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 3519
Foswiki::expandMacros(Foswiki=HASH(0x802d78db0), "Seems to be triggered by http://foswiki.org/Sandbox/MegaFAQ "..., Foswiki::Meta=HASH(0x8048ca9c0)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Meta.pm line 3351
Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x8048ca9c0), "Seems to be triggered by http://foswiki.org/Sandbox/MegaFAQ "...) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI/View.pm line 508
Foswiki::UI::View::_prepare("Seems to be triggered by http://foswiki.org/Sandbox/MegaFAQ "..., Foswiki::Meta=HASH(0x8048ca9c0), 0) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI/View.pm line 488
Foswiki::UI::View::view(Foswiki=HASH(0x802d78db0)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI.pm line 372
Foswiki::UI::__ANON__() called at /usr/local/lib/perl5/site_perl/5.16/Error.pm line 421
eval {...} called at /usr/local/lib/perl5/site_perl/5.16/Error.pm line 413
Error::subs::try(CODE(0x80107f510), HASH(0x802d788b8)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI.pm line 498
Foswiki::UI::_execute(Foswiki::Request=HASH(0x802db4708), CODE(0x802d7b048), "view", 1) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI.pm line 324
Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x802db4708)) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Engine/CGI.pm line 98
Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x80213f6c0)) called at /home/trunk.foswiki.org/core/bin/view line 29.
--
GeorgeClark - 21 Dec 2014