<div dir="ltr">Perhaps this is related:<br><br><a href="https://rt.cpan.org/Public/Bug/Display.html?id=92168">https://rt.cpan.org/Public/Bug/Display.html?id=92168</a><br><br>Boris.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 9, 2015 at 5:52 PM, Boris Epstein <span dir="ltr"><<a href="mailto:borepstein@gmail.com" target="_blank">borepstein@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello listmates,<div><br></div><div>I have an RT 4.2.0 installation using Postgresql as DB engine running on a CentOS 6 server where every attempt to extract a search to XLS results in a failure.</div><div><br></div><div>The failure manifests itself in the following way. The user's browser displays the following message:</div><div><br></div><div><b>An internal RT error has occurred. Your administrator can find more details in RT's log files.</b><br></div><div><br></div><div>The Apache/HTTPD log displays the following:</div><div><br></div><div><div><b>[27915] [Wed Sep 9 21:20:27 2015] [error]: Undefined subroutine &RT::SQL::PossibleCustomFields called at /opt/rt4/local/plugins/RT-Extension-SearchResults-XLS/html/Search/Results.xls line 80.</b></div><div><b><br></b></div><div><b>Stack:</b></div><div><b> [/opt/rt4/local/plugins/RT-Extension-SearchResults-XLS/html/Search/Results.xls:80]</b></div><div><b> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:680]</b></div><div><b> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:368]</b></div><div><b> [/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:211)</b></div></div><div><br></div><div>Here is what I think is the relevant excerpt from /opt/rt4/local/plugins/RT-Extension-SearchResults-XLS/html/Search/Results.xls</div><div><br></div><div><b>...</b></div><div><div><b>my $col_entry = sub {</b></div><div><b> my $col = shift;</b></div><div><b> # in tsv output, "#" is often a comment character but we use it for "id"</b></div><div><b> delete $col->{title}</b></div><div><b> if $col->{title} and $col->{title} =~ /^\s*#\s*$/;</b></div><div><b> return {</b></div><div><b> header => loc($col->{title} || $col->{attribute}),</b></div><div><b> map => $m->comp(</b></div><div><b> "/Elements/ColumnMap",</b></div><div><b> Name => $col->{attribute},</b></div><div><b> Attr => 'value'</b></div><div><b> ),</b></div></div><div><b>...</b></div><div><br></div><div>Line 80 is the line that says: my $col = shift;</div><div><br></div><div>Has anyone encountered something like this? Any idea what this may be?</div><div><br></div><div>Thanks.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Boris.</div></font></span></div>
</blockquote></div><br></div>