Bug 10338 - Search history can cause "Out of memory" errors
Summary: Search history can cause "Out of memory" errors
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: master
Hardware: All All
: P3 normal (vote)
Assignee: Owen Leonard
QA Contact:
URL:
Keywords:
Depends on: 10657
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-24 18:26 UTC by Jesse Weaver
Modified: 2015-12-03 22:00 UTC (History)
2 users (show)

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


Attachments

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