Bug 30188

Summary: Hold ratios report is broken
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: caroline.cyr-la-rose, emily.lamancusa, gmcharlt, jonathan.druart, kyle.m.hall, victor
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2022-02-26 18:19:53 UTC
When trying to access the report I et:

CGI::Compile::ROOT::kohadevbox_koha_circ_reserveratios_2epl::reserveratios_2epl(): DBI Exception: DBD::mysql::st execute failed: 'koha_kohadev.reserves.reservedate' isn't in GROUP BY at /usr/share/perl5/CGI/Emulate/PSGI.pm line 30
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77

Testing on ktd with sample database.
Comment 1 Victor Grousset/tuxayo 2022-08-09 18:36:00 UTC
It has been said to be related to strict mode.
Comment 2 Jonathan Druart 2022-08-10 08:19:51 UTC

*** This bug has been marked as a duplicate of bug 23360 ***
Comment 3 Emily Lamancusa (emlam) 2023-10-17 20:00:09 UTC
In case anyone else comes here looking for answers on how to fix this on KTD...
the answer is to edit <strict-sql-modes> to 0 in the conf file:
/etc/koha/sites/kohadev/koha-conf.xml
Comment 4 Caroline Cyr La Rose 2025-02-24 17:22:00 UTC
Thanks Emily for the file and what to change. For other newbies like me, you also need to do reset_all after changing the conf file