I'm seeing this same "Error: Can't call method "as_usmarc" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 2133."
I started seeing the error on searches after I deleted an item and biblio record added from an import. What's the best way to get searching working again? Any ideas on how I can avoid these problems in the future? We're running Koha 3.0 on Ubuntu with Marc21 records. Thanks, Eric Constantine Tsardounis wrote: > > $ uname -a > Linux asymmetry.*. 2.6.26-1-686 #1 SMP Wed Sep 10 16:46:13 UTC 2008 i686 > GNU/Linux (Debian - Lenny) > US keyboard - I did not type the diacritics (I think the problem is with > the character "ϊ" of the eu2.marc file) > > I uploaded, staged and imported a file with records that contain amongst > other > MANY titles the word "Ευρωαπαϊκή" (it means European) as a title of a > book. > After that, any catalog search that contains a word that was in that file > gives > me the error page: > > Error: Can't call method "as_usmarc" on an undefined value at > /usr/share/koha/lib/C4/Search.pm line 2133. > > I undid the import but nothing happened. > > The BIG problem is that it contained many many widely used words like > "economics" or "environment" or "statistics". So now that I search for > these > words I get the same error page. > > Could you please provide me with a work around in order to remove this > staged > file please? > > ######## > Way to reproduce: > ######## > Download: http://costis.name/eu2.marc : this file contains various entries > amongst them > there is a book written by McCann, and in a later line another book that > contains the string "Ευρωπαϊκ" in its title, written by "Μούσης". > > 1. I have a clean installation of koha and import eu2.marc > 2. I search for McCann, and I get the result I should > 3. I search for Μούσης and I get the error (Error: Can't call method > "as_usmarc" on an undefined value at /usr/share/koha/lib/C4/Search.pm line > 2133.) > 4. I search for McCann, and I get the same Error!... Isn't it weird that I > did > not get it in step 2? > > How could i resolve this? > > ######## > Unsuccessful solution: > ######## > In the database, I removed from the import_batches table the entries of > the import_batch_id 13,14,15 (these correspond to the files that contained > the > entries with the diacritics and are like the eu2.marc file), but the > problem persists. What else should I do ? > -- View this message in context: http://www.nabble.com/Problems-with-diacritics-tp19547458p20623611.html Sent from the Koha - Dev mailing list archive at Nabble.com. _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel