[Bug 35172] New: Order receiving error
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 Bug ID: 35172 Summary: Order receiving error Change sponsored?: --- Product: Koha Version: 22.11 Hardware: PC OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: librarian@sageuniversity.in QA Contact: testopia@bugs.koha-community.org Created attachment 157967 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157967&action=edit Error in order receiving I am using koha version 22.11.10.when receiving order something went wrong when loading the table 500 internal server error please see the screen shot. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Can you get to your server's log files maybe? The 500 is only what we see in the interface, the real interesting information will be hiding there. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 --- Comment #2 from Govind Basedia <librarian@sageuniversity.in> --- Same problem in 23.05.04 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Govind, is it the same data you are testing with in both versions? The order receive process has been changed a lot between 22.11 and 23.05. We need more information here to be able to help. Please check your browser logs for any JS issues and the server logs for any other error occuring. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 Hugo Agud <hagud@orex.es> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hagud@orex.es --- Comment #4 from Hugo Agud <hagud@orex.es> --- Good morning, I have suffer the same issue... I have checked that this only happens in some orders, then it must be some metadata issue (my point of view) I have dumped database and restored in koha 23.11 and worked fine...caming back to 22.05 I have checked logs in koha 22.05.* [2024/01/05 01:18:13] [ERROR] GET /api/v1/acquisitions/orders: unhandled excepti on (Mojo::Exception)<<Can't call method "to_api" on an undefined value at /usr/s hare/koha/lib/Koha/Biblio.pm line 1098.>> Koha::REST::Plugin::Exceptions::__ANON __ /usr/share/koha/lib/Koha/REST/Plugin/Exceptions.pm (73) I suspect it is an issue with metadata of the orders, checimg the code sub to_api { my ($self, $args) = @_; my $response = $self->SUPER::to_api($args); my $biblioitem = $self->biblioitem; I suspect it could be the biblioitem data, not presented in some recordS? I have added a else condition to ignore if there is no biblioitem I have edited the code and add a log warn [2024/01/05 01:43:10] [WARN] Biblio with biblionumber 13250 does not have a valid biblioitem object at /usr/share/koha/lib/Koha/Biblio.pm line 1108. And it works... I can confirm that there is no biblioitem with that biblionumber.. then it is a metadata issue -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- If you have entries in your biblio table without a matching entry in the biblioitems table, that would be a serious data issue. What else I could imagine is that your biblionumbers and biblioitemnumbers got out of sync. Could you check if biblionumber = biblioitemnumber in your biblioitems table? Most of the time that is the case as we have a 1:1 relationship, but through migration etc. things can get out of synch sometimes. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 Erin A. <erin.arnold@marionfl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |erin.arnold@marionfl.org --- Comment #6 from Erin A. <erin.arnold@marionfl.org> --- We are seeing this error in 23.05.08 Thanks for looking into it! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 Keith Dembek <kdembek@sjcfl.us> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kdembek@sjcfl.us --- Comment #7 from Keith Dembek <kdembek@sjcfl.us> --- This happens to me in 23.05.09 if the items were not given an item type during the acquisitions process. Once I go to the record and give them an item type, they'll suddenly appear in the receiving search results. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Keith Dembek from comment #7)
This happens to me in 23.05.09 if the items were not given an item type during the acquisitions process. Once I go to the record and give them an item type, they'll suddenly appear in the receiving search results.
Hi Keith, this is the expected behavior. Koha now expects all items to have an item type. It's not only order receive, but also the OPAC display that will break otherwise. One solution could maybe be assigning a temp item type by batch editing all items without. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org