Bug 34974

Summary: search_for_data_inconsistencies.pl: Can't call method "get_column"
Product: Koha Reporter: Michael Kuhn <mik>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: robin
Version: 20.11   
Hardware: All   
OS: Linux   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Michael Kuhn 2023-10-03 10:09:20 UTC
When calling the script "search_for_data_inconsistencies.pl" the only output is the following:

$ sudo koha-shell -c "perl /usr/share/koha/bin/maintenance/search_for_data_inconsistencies.pl" instancename
Can't call method "get_column" on an undefined value at /usr/share/koha/bin/maintenance/search_for_data_inconsistencies.pl line 157.

This happens when using Koha 20.11.02 with MariaDB 10.3.39, running on Debian GNU/Linux 10.

According to Jonathan Druart (3 October 2023) this can be considered as a bug for this script, and it seems (looking at the code) that the bug still exists in master.