[rt-users] 3.6.3 strftime change breaks SendEmail.pm
Gary Hall
hall at fas.sfu.ca
Fri Jun 22 18:59:46 EDT 2007
Gary Hall wrote:
> I've upgraded from 3.6.1 to 3.6.3 and now RT cannot send email.
>
> Here's the error message:
>
> Prototype mismatch: sub RT::Action::SendEmail::strftime ($\@;$) vs none
> at /usr/lib/perl5/5.8.7/Exporter.pm line 65.
> at /usr/lib/perl5/5.8.7/x86_64-linux-thread-multi/POSIX.pm line 19
> [Fri Jun 22 17:24:54 2007] [error]: Scrip Commit 23 died. - Usage:
> POSIX::strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday =
> -1, isdst = -1) at /chroot/opt/rt3/lib/RT/Action/SendEmail.pm line 262.
>
> Stack:
> [/chroot/opt/rt3/lib/RT/Action/SendEmail.pm:259]
> [/chroot/opt/rt3/lib/RT/Action/SendEmail.pm:103]
> [/chroot/opt/rt3/lib/RT/ScripAction_Overlay.pm:240]
> [/chroot/opt/rt3/lib/RT/Scrip_Overlay.pm:506]
> [/chroot/opt/rt3/lib/RT/Scrips_Overlay.pm:193]
> [/chroot/opt/rt3/lib/RT/Transaction_Overlay.pm:179]
> [/chroot/opt/rt3/lib/RT/Record.pm:1446]
> [/chroot/opt/rt3/lib/RT/Ticket_Overlay.pm:744]
> [/chroot/opt/rt3/lib/RT/Interface/Email.pm:717]
> [/chroot/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:59]
> (/chroot/opt/rt3/
> lib/RT/Scrip_Overlay.pm:514)
>
> How can I fix this?
>
The problem arose of conflict between the 3.6.3 version
of ../lib/RT/Action/SendEmail.pm and a local overlay
../local/lib/RT/Action/SendEmail_Local.pm.
The overlay was still importing strftime from POSIX.pm. I
updated it to "use" Date::Format's strftime.
Sorry for the noise.
--
Gary Hall hall at fas.sfu.ca | Voice (604) 291-5925
Faculty of Applied Sciences | Fax (604) 291-5404
Simon Fraser University |
Burnaby, B.C. V5A 1S6 |
More information about the rt-users
mailing list