Bug 10338

Summary: Search history can cause "Out of memory" errors
Product: Koha Reporter: Jesse Weaver <jweaver>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gmcharlt, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 10657    
Bug Blocks:    

Description Jesse Weaver 2013-05-24 18:26:58 UTC
After a certain number of searches, thawing the search history cookie (line ~296 of C4/Auth.pm) can cause an "Out of memory" error, causing all OPAC scripts to stop working. This seems to occur after a certain number of searches, but does not seem to be related to corruption or truncation due to the max cookie size.

The current workaround is to disable OPAC search history (the  EnableOpacSearchHistory syspref).
Comment 1 Galen Charlton 2013-07-29 23:53:36 UTC
This should be fixed by the patch to bug 10657, which replaces Storable with JSON for serializing the search history.
Comment 2 Jonathan Druart 2015-04-16 13:38:35 UTC
(In reply to Galen Charlton from comment #1)
> This should be fixed by the patch to bug 10657, which replaces Storable with
> JSON for serializing the search history.

Confirmed, should be fixed.