Bug 10739 - Template caching produces software errors when using templates in batch mode
Summary: Template caching produces software errors when using templates in batch mode
Status: RESOLVED DUPLICATE of bug 13053
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-16 07:10 UTC by Sophie MEYNIEUX
Modified: 2014-12-11 15:35 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***