Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am getting an error on an old cgi script that is stopping the site after moving it from suse to RHEL Please take a look and if anybody know this I would appreciate your help
[Thu Apr 13 15:13:45 2017] [error] [client 10.0.0.5] Template process +failed for page 'WS_advanced.tt' undef error - conv_perc: filter not +found, referer: http://server.my-site.com/Worksite/WS_advanced.cgi [Thu Apr 13 15:15:22 2017] [error] [client 10.0.0.5] Template process +failed for page 'WS.tt' undef error - conv_perc: filter not found, re +ferer: http://server.my-site.com/Worksite/WS.cgi
The listed cgi scripts call matching templates and the lines that are causing the problem are here:
grep -n conv_perc *.tt WS_advanced.tt:318: [% item.swishreccount %]. <a href="[% item.swishdo +cpath_href | replace ('^','http://')%]">[% ( item.swishtitle || item. +swishdocpath ) %]</a><span class="smaller">-- rank: <span class="bol +d">[% item.swishrank | conv_perc %]%</span></span><br> WS.tt:319: [% item.swishreccount %]. <a href="[% item.swishdocpath_hre +f | replace ('^','http://')%]">[% ( item.swishtitle || item.swishdocp +ath ) %]</a><span class="smaller">-- rank: <span class="bold">[% ite +m.swishrank | conv_perc %]%</span></span><br>

Replies are listed 'Best First'.
Re: cgi script error help
by huck (Prior) on Apr 13, 2017 at 22:59 UTC
Re: cgi script error help
by Anonymous Monk on Apr 13, 2017 at 22:43 UTC
    That was quite likely a custom filter that was left behind on the old server. conv_perc implies that it is converting the value to a percentage so in the event you cannot find the original file on the old server, this should be trivial to reimplement (or possibly even replace with an existing filter from TT).