https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35172
Hugo Agud <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Hugo Agud <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
