RT 4.0.4: "panic: leave_scope pad code at ..."

Hello there…

I have an old RT 4.0.4 chugging along in the corner. From time to time, user will get the error “An internal error has occurred. Your administrator can find more details in RT’s log files.” in the GUI. In the systems syslog, I have found the following error, which seems to correspond with the times when my users experience receive the error message.

Any ideas on how to fix it?

Sep 25 11:04:56 tickets RT: panic: leave_scope pad code at /usr/share/perl5/HTML/Quoted.pm line 90. (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:210)