Bug 10739

Summary: Template caching produces software errors when using templates in batch mode
Product: Koha Reporter: Sophie MEYNIEUX <sophie.meynieux>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Sophie MEYNIEUX 2013-08-16 07:10:39 UTC
This bug was introduced by Bug 7511

When templates are used without GUI, the use of <template_cache_dir> in KOHA_CONF generate some software errors.

For example : 
- add <template_cache_dir>/tmp</template_cache_dir> in your KOHA_CONF file
- returns a book that a borrower has reserved. Make sure this borrower has not activated email or sms notification so that a print notice wil be created
- run misc/cronjobs/gather_print_notices.pl <directory>

You've got some software errors : 
koha@sophie-Latitude-E5420:~/versions/community34/misc/cronjobs$ ./gather_print_notices.pl /tmp
Use of uninitialized value in hash element at /home/koha/versions/community34/C4/Languages.pm line 322.
Use of uninitialized value in hash element at /home/koha/versions/community34/C4/Languages.pm line 323.
Use of uninitialized value in string eq at /home/koha/versions/community34/C4/Languages.pm line 332.
Use of uninitialized value in string eq at /home/koha/versions/community34/C4/Languages.pm line 332.
Use of uninitialized value in string eq at /home/koha/versions/community34/C4/Languages.pm line 332.

If you <remove template_cache_dir> from your KOKA_CONF_FILE, and redo the test, the notice is correctly printed.
Comment 1 Jonathan Druart 2014-12-11 15:35:47 UTC

*** This bug has been marked as a duplicate of bug 13053 ***