Bug 38277

Summary: Patron card creator image upload ungraceful error when uploading large image
Product: Koha Reporter: David Cook <dcook>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38275
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description David Cook 2024-10-27 22:38:41 UTC
If you try to upload a large image to the patron card creator image upload, you'll get a fatal error.

In a dev environment, you'll see an error like this:

C4::Patroncards::Lib::put_image(): DBI Exception: DBD::mysql::st execute failed: Got a packet bigger than 'max_allowed_packet' bytes at /kohadevbox/koha/patroncards/image-manage.pl line 95
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77