[Koha-bugs] [Bug 10165] New: Trying to clear reading history when AnonymousPatron unset and DEBUG is on causes fatal error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 1 14:48:06 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10165

            Bug ID: 10165
           Summary: Trying to clear reading history when AnonymousPatron
                    unset and DEBUG is on causes fatal error
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: jcamins at cpbibliography.com
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
        Depends on: 6506
            Blocks: 9944

I get the following error:

DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key
constraint fails (`koha`.`old_issues`, CONSTRAINT `old_issues_ibfk_1` FOREIGN
KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET
NULL ON UPDATE SET NULL) at /home/jcamins/kohaclone/C4/Circulation.pm line
2859.
 at /home/jcamins/kohaclone/opac/opac-privacy.pl line 77

This should be addressed by catching any errors thrown by that query, and
setting $anonymisation_err appropriately.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list