Bug 3600

Summary: Noisy error in rebuild_zebra.pl
Product: Koha Reporter: D Ruth Holloway <ruth>
Component: Architecture, internals, and plumbingAssignee: D Ruth Holloway <ruth>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: chris, gmcharlt, julian.maurice
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:
Attachments: Patch for this bug

Description Chris Cormack 2010-05-21 01:12:43 UTC


---- Reported by dbavousett@ptfs.com 2009-09-10 15:16:48 ----

When rebuild_zebra.pl is run from cron, there is an occasional error of the form:  Use of uninitialized value $str in substitution (s///) at /home/ebpl/kohaclone/C4/Charset.pm line 304.

This error is occuring when the string that is fed to Charset::StripNonXmlChars is null or undefined, for some reason.

This fix will handle the null-or-empty condition, and thus suppress the error.



---- Additional Comments From dbavousett@ptfs.com 2009-09-10 15:19:32 ----

Created an attachment
Patch for this bug





---- Additional Comments From gmcharlt@gmail.com 2009-09-12 12:43:43 ----

Patch pushed.  Please test and close.  I suggest that you do not mark bugs as resolved fixed until you verify that the patch is in and is working.



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:12 UTC  ---

This bug was previously known as _bug_ 3600 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3600
Imported an attachment (id=1456)

Actual time not defined. Setting to 0.0
The original submitter of attachment 1456 [details] [review] is unknown.
   Reassigning to the person who moved it here: chris@bigballofwax.co.nz.