[Koha-bugs] [Bug 4803] New: Error for some query next pages in Koha-Intranet

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 21 16:41:23 CEST 2010


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4803

           Summary: Error for some query next pages in Koha-Intranet
 Change sponsored?: ---
           Product: Koha
           Version: rel_3_0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Searching
        AssignedTo: gmcharlt at gmail.com
        ReportedBy: dubyk at library.lviv.ua
         QAContact: koha-bugs at lists.koha-community.org
   Estimated Hours: 0.0


Koha 3.0.6
Debian Lenny
Unimarc
no_zebra
sax_parser OK
rebuld_nozebra OK

For some searching in Koha-Intranet I got error when trying go to next page in
search results.

Error: 
 Can't call method "as_usmarc" on an undefined value at
/usr/share/koha3/lib/C4/Search.pm line 2334. 

I look on this line

http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=blob;f=C4/Search.pm;h=cadab261e216f785a3aacdc3f6d4d9a9a4452d5b;hb=d80033f567b32eb018c3ecefba02e537877b401d#l2334

and make editing in my installation:
replace 

 $result_hash->{'RECORDS'}[$counter] =
              GetMarcBiblio( $result_hash->{'RECORDS'}[$counter] )->as_usmarc;

TO

 $result_hash->{'RECORDS'}[$counter] =
              GetMarcBiblio( $result_hash->{'RECORDS'}[$counter] )->as_usmarc
if $result_hash->{'RECORDS'}[$counter];

After this all Ok!

P.S. The error appeared very rarely and often disappeared by selecting a
different sorting...

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the Koha-bugs mailing list