Bug 38277 - Patron card creator image upload ungraceful error when uploading large image
Summary: Patron card creator image upload ungraceful error when uploading large image
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-27 22:38 UTC by David Cook
Modified: 2024-10-27 22:38 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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