5.0.4 upgrade - HTMLFormatTextW3m error

Hello,

After the 5.0.4 upgrade ( from 5.0.3) I got the 500 error page when I try to access RT.
The rt_debug.log contains the following:

[8228] [Thu Sep 7 14:56:30 2023] [critical]: Can’t locate object method “require” via package “HTML::FormatText::W3m” (perhaps you forgot to load “HTML::FormatText::W3m”?) at /opt/rt5/sbin/…/local/lib/RT/Interface/Email.pm line 1530, line 2112. (/opt/rt5/sbin/…/lib/RT.pm:409)
Trace begun at /opt/rt5/sbin/…/lib/RT.pm line 314
Log::Dispatch::ANON(‘Log::Dispatch=HASH(0x56517484a340)’, ‘Can't locate object method “require” via package “HTML::FormatText::W3m” (perhaps you forgot to load “HTML::FormatText::W3m”?) at /opt/rt5/sbin/…/local/lib/RT/Interface/Email.pm line 1530, line 2112.^J’) called at /opt/rt5/sbin/…/lib/RT.pm line 409
RT::ANON(‘Can't locate object method “require” via package “HTML::FormatText::W3m” (perhaps you forgot to load “HTML::FormatText::W3m”?) at /opt/rt5/sbin/…/local/lib/RT/Interface/Email.pm line 1530, line 2112.^J’) called at /opt/rt5/sbin/…/local/lib/RT/Interface/Email.pm line 1530
RT::Interface::email::_HTMLFormatter(‘RT::Interface::Email’) called at /opt/rt5/sbin/…/lib/RT/Config.pm line 880
RT::Config::ANON(‘RT::Config=HASH(0x56517489c008)’, undef) called at /opt/rt5/sbin/…/lib/RT/Config.pm line 2467
RT::Config::PostLoadCheck(‘RT::Config=HASH(0x56517489c008)’) called at /opt/rt5/sbin/…/lib/RT.pm line 209
RT::Init(‘RT’, ‘Heavy’, 1) called at /opt/rt5/sbin/rt-server.fcgi line 126

The “HTML::FormatExternal” perl module is installed on the system, and worked fine with 5.0.3.

The upgrade was successful, no error during the installation of the dependencies or the database upgrade.
I need some help to find a solution for this error.

Thanks and Regards,

Eszter

This may be another example of a system Perl putting module libraries in private directories so that, for example the root user can see them but the user the web server is running under can not. Similar to this one. Probably worth checking where that module has been installed and if the web server user can see it.