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@lists.koha-community.org Reporter: jcamins@cpbibliography.com CC: gmcharlt@gmail.com, kyle.m.hall@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.