Summary: | Can't call method "raw" on an undefined value at C4/Search.pm line 806 | ||
---|---|---|---|
Product: | Koha | Reporter: | Srdjan Jankovic <srdjan> |
Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | bijuvvlis, dcook, gbortega, jonathan.druart, pablo.bianchi, tomascohen |
Version: | 16.05 | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11232 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
While seaching OPAC shows this error in koha 16.05.03.000
Staff interface |
Description
Srdjan Jankovic
2016-08-15 02:50:04 UTC
Srdjan, could you be more specific on how to reproduce it? Unfortunately I cannot at the moment, it must be a combination of things introduced relatively recently to the master. I have not been playing with OPAC for a month or so, and this thing jumped on me. What I did meanwhile as well was to move zebra indexing to dom. I'll try to see what exactly is causing it. Created attachment 55683 [details]
While seaching OPAC shows this error in koha 16.05.03.000
In koha version 16.05.03.000 shows this error message while searching.
Error:
Can't call method "raw" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 806.
Created attachment 55684 [details]
Staff interface
This error usually happens when you zebra index is not up-to-date. Hello, I have the same problem, someone has the solution, please? Thanks! GBO Hi Gabrielo, did you update your zebra index? Hi, Jhonathan Thanks for replying so quickly, look I take it from the zebra page, but it seems that I do not update Debian users can add the following two lines in /etc/apt/sources.list and use Debians own package management tools, apt-get, aptitude, or dselect. Replace xxxxx with jessie, wheezy, etc. As of June 2015, Debian wheezy (7) is obsolete stable. Debian jessie (8) is current stable. deb http://ftp.indexdata.dk/debian xxxxx main deb-src http://ftp.indexdata.dk/debian xxxxx main These packages are signed with a key you can install as follows: wget http://ftp.indexdata.dk/debian/indexdata.asc sudo apt-key add indexdata.asc Installed: Zebra 2.0.44 (C) 1994-2010, Index Data ApS Zebra is free software Hi, Jhonathan Thanks for replying so quickly, look I take it from the zebra page, but it seems that I do not update Debian users can add the following two lines in /etc/apt/sources.list and use Debians own package management tools, apt-get, aptitude, or dselect. Replace xxxxx with jessie, wheezy, etc. As of June 2015, Debian wheezy (7) is obsolete stable. Debian jessie (8) is current stable. deb http://ftp.indexdata.dk/debian jessie main deb-src http://ftp.indexdata.dk/debian jessie main These packages are signed with a key you can install as follows: wget http://ftp.indexdata.dk/debian/indexdata.asc sudo apt-key add indexdata.asc Installed: Zebra 2.0.44 (C) 1994-2010, Index Data ApS Zebra is free software Gabrielo, did you fully rebuild your zebra index using the koha-rebuild-zebra command? Hi, Yes, look: sudo apt-get update sudo koha-rebuild-zebra -f -v sudo service apache2 restart But, the update is not done. (In reply to gabrielo from comment #11) > Hi, > > Yes, look: > > sudo apt-get update > sudo koha-rebuild-zebra -f -v > sudo service apache2 restart > > But, the update is not done. sudo koha-rebuild-zebra -f -a -b -v $(koha-list) Regards Did not updated...(In reply to Tomás Cohen Arazi from comment #12) > (In reply to gabrielo from comment #11) > > Hi, > > > > Yes, look: > > > > sudo apt-get update > > sudo koha-rebuild-zebra -f -v > > sudo service apache2 restart > > > > But, the update is not done. > > sudo koha-rebuild-zebra -f -a -b -v $(koha-list) > > Regards ... Does not work anyway On v17.11.07. I have the same issue but just with small keywords on the query, like opac-search.pl?q=a and q=aa No changes with koha-rebuild-zebra -f -a -b -v instance, restarting services apache2 koha-common or rebooting. The referenced line (Search.pm line 813): # get the facet record from result set my $facet = $rs->record( 0 )->raw; Maybe is a timeout error/issue (2GB RAM, 1 vCPU). Happen after ~35 seconds of waiting. When searching zebrasrv (or starman worker) consume high percentages of CPU and then on plack-error.log (without any timestamp, but tested several times with tail -f): Use of uninitialized value $error in concatenation (.) or string at /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 615 $template->param(query_error => $error.$@); https://github.com/Koha-Community/Koha/blob/master/opac/opac-search.pl#L615 zebra-output.log just have the eternal classic log: zebrasrv(42) [warn] ir_session (exception) zebra-error.log probably because the restarts/reboots killed by signal 15, stopping |