[Bug 20002] New: Can't call method "description" on an undefined value at /usr/share/koha/intranet/cgi-bin/members/summary-print.pl line 107.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20002 Bug ID: 20002 Summary: Can't call method "description" on an undefined value at /usr/share/koha/intranet/cgi-bin/members/summary-print .pl line 107. Change sponsored?: --- Product: Koha Version: 17.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Patrons Assignee: koha-bugs@lists.koha-community.org Reporter: mhby87@gmail.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com Created attachment 70601 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70601&action=edit Software error: Error on print summary -- 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=20002 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Mohd, please always include some step by step information on what you did in order for the error message to show up. Thx! -- 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=20002 --- Comment #2 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- I test Some error show when patron borrow over 80 item. But not all patron have this error -- 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=20002 --- Comment #3 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- On summary-print.pl line 107 $row{'itemtype_description'} = $itemtype->description; #FIXME Should not it be translated_description -- 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=20002 --- Comment #4 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- Anybody cal help me? -- 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=20002 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #5 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- It looks like you have an item that have an item type not defined in your system. To know the item types that are not defined in Koha, you can execute the following query: If item-level_itypes is "specific item" select distinct(itype) from items left join itemtypes on itype=itemtype where itemtype is null; If item-level_itypes is "biblio record" select distinct(bi.itemtype) from biblioitems bi left join itemtypes it on bi.itemtype=it.itemtype where bi.itemtype is null; -- 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=20002 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal Version|17.11 |master -- 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=20002 --- Comment #6 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- Created attachment 71233 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71233&action=edit Result NULL After run query, result is NULL, how next step to do? -- 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=20002 --- Comment #7 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I am sorry I have no idea then. Do you have something else in the log? Maybe your item does not have an item type defined? Make sure your items have an item type correctly defined. Otherwise you could apply this change: diff --git a/members/summary-print.pl b/members/summary-print.pl index a6a0e36194..bb57ee0d00 100755 --- a/members/summary-print.pl +++ b/members/summary-print.pl @@ -100,6 +100,7 @@ sub build_issue_data { if ( $issue->{replacementprice} ); #find the charge for an item + warn "Getting charges for " . $issue->{itemnumber}; my ( $charge, $itemtype ) = GetIssuingCharges( $issue->{itemnumber}, $borrowernumber ); Restart plack, then reload the page. In the log you should see the "Getting charges for " line with the itemnumber that cause problem. -- 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=20002 --- Comment #8 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- Created attachment 71240 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71240&action=edit Log after edit code For your info, this problem come affer upgrade from KOHA 16.05 to 17.11 After add code warn "Getting charges for " . $issue->{itemnumber}; Error log in attachment -- 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=20002 --- Comment #9 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- What are the return of these queries: select itype from items where itemnumber=322947; select itemtype from biblioitems bi left join items it on bi.biblionumber=it.biblionumber where it.itemnumber=322947; select value from systempreferences where variable="item-level_itypes"; select itemtype from itemtypes; -- 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=20002 --- Comment #10 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- Created attachment 71256 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71256&action=edit Result on test query Before I run the query, I edit biblio dan itemnumber for 322947 - Sorry for this. Now I try with new error log, I found the error on itemnumber=274334 and biblionumber=121544 At biblio, Koha [default] item type 942 is NULL and Koha item type BOOK. After run the query, result like attachment -- 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=20002 --- Comment #11 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- Created attachment 71257 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71257&action=edit Another error log -- 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=20002 --- Comment #12 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- Created attachment 71258 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71258&action=edit 942 is NULL -- 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=20002 --- Comment #13 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- Created attachment 71259 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71259&action=edit Koha Item type BOOK -- 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=20002 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #14 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- You have item types defined at biblio level (item-level_itypes=0), but not defined in biblioitems table (942$c is empty), you need to fix your records. -- 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=20002 --- Comment #15 from Mohd Hafiz Yusoff <mhby87@gmail.com> --- How to query all biblio number with 942$c is empty? -- 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=20002 --- Comment #16 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- https://wiki.koha-community.org/wiki/SQL_Reports_Library#Biblio_Items_withou... -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org