Bug 10165 - Trying to clear reading history when AnonymousPatron unset and DEBUG is on causes fatal error
Summary: Trying to clear reading history when AnonymousPatron unset and DEBUG is on ca...
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low critical (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on: 6506
Blocks: 9944
  Show dependency treegraph
 
Reported: 2013-05-01 12:48 UTC by Jared Camins-Esakov
Modified: 2019-06-27 09:24 UTC (History)
3 users (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 Jared Camins-Esakov 2013-05-01 12:48:06 UTC
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.
Comment 1 Jonathan Druart 2015-04-09 10:33:22 UTC
This means you run the OPAC with DEBUG set and enabled a feature without configuring it :)

IMO this is not valid. Note that the error is correctly handled if DEBUG is off.
Please reopen if you disagree.