Summary: | When TT notices fail at generation, no error is visible in the interface | ||
---|---|---|---|
Product: | Koha | Reporter: | Marion Durand <marion.durand> |
Component: | Notices | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: |
Description
Marion Durand
2025-06-24 12:28:57 UTC
The only case where I got some log is when the TT error is in a notice generated by a cronjob (advances_notices.pl, PREDUEDGST), I got the follwing error by an email report of the cron : ``` ERROR PROCESSING TEMPLATE: undef error - The method Koha::Item->date_due is not covered by tests! Trace begun at /home/koha/src/Koha/Object.pm line 971 Koha::Object::AUTOLOAD('Koha::Item=HASH(0x652e9719dd30)') called at input text line 20 eval {...} at input text line 20 eval {...} at input text line 28 eval {...} at input text line 7 Template::Document::__ANON__('Template::Context=HASH(0x652e970c9310)') called at /usr/lib/x86_64-linux-gnu/perl5/5.30/Template/Document.pm line 163 eval {...} at /usr/lib/x86_64-linux-gnu/perl5/5.30/Template/Document.pm line 161 Template::Document::process('Template::Document=HASH(0x652e9715bdb8)', 'Template::Context=HASH(0x652e970c9310)') called at /usr/lib/x86_64-linux-gnu/perl5/5.30/Template/Context.pm line 351 eval {...} at /usr/lib/x86_64-linux-gnu/perl5/5.30/Template/Context.pm line 321 Template::Context::process('Template::Context=HASH(0x652e970c9310)', 'Template::Document=HASH(0x652e9715bdb8)') called at /usr/lib/x86_64-linux-gnu/perl5/5.30/Template/Service.pm line 94 eval {...} at /usr/lib/x86_64-linux-gnu/perl5/5.30/Template/Service.pm line 91 Template::Service::process('Template::Service=HASH(0x652e96fb4180)', 'SCALAR(0x652e93d6eda0)', 'HASH(0x652e97002668)') called at /usr/lib/x86_64-linux-gnu/perl5/5.30/Template.pm line 66 Template::process('Template=HASH(0x652e97002278)', 'SCALAR(0x652e93d6eda0)', 'HASH(0x652e97002668)', 'SCALAR(0x652e93d6f670)') called at /home/koha/src/C4/Letters.pm line 1721 C4::Letters::try {...} at /usr/share/perl5/Try/Tiny.pm line 100 eval {...} at /usr/share/perl5/Try/Tiny.pm line 93 Try::Tiny::try('CODE(0x652e970c9718)', 'Try::Tiny::Finally=REF(0x652e8d0621b0)') called at /home/koha/src/C4/Letters.pm line 1725 C4::Letters::_process_tt('HASH(0x652e97002ed8)') called at /home/koha/src/C4/Letters.pm line 639 C4::Letters::GetPreparedLetter('module', 'circulation', 'letter_code', 'PREDUEDGST', 'branchcode', 'SEG', 'lang', 'default', 'substitute', 'HASH(0x652e96fcc128)', 'tables', 'HASH(0x652e93dacb70)', 'loops', 'HASH(0x652e9708a240)', 'message_transport_type', 'email') called at /home/koha/src/misc/cronjobs/advance_notices.pl line 503 main::parse_letter('HASH(0x652e96fc85c8)') called at /home/koha/src/misc/cronjobs/advance_notices.pl line 610 main::send_digests('HASH(0x652e96f80ab8)') called at /home/koha/src/misc/cronjobs/advance_notices.pl line 449 at /home/koha/src/misc/cronjobs/advance_notices.pl line 503. ``` |